Skip to content

Commit

Permalink
feat: workflow 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
1eeyerin committed Jun 9, 2024
1 parent 5af399b commit a0fbff1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to Personal Repository

on:
push:
branches: ['main']

jobs:
deploy-to-personal-repo:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Copy Files to Personal Repository
uses: actions/checkout@v4
with:
repository: 1eeyerin/BloodFolio
token: ${{ secrets.PERSONAL_REPO }}
path: 'tmp_repo'

- name: Copy Files to Personal Repository
run: rsync -av --exclude=".git" --exclude=".github" --exclude="dist" --exclude="node_modules" ./ tmp_repo/

- name: Push to Personal Repository
run: |
cd tmp_repo
git config --local user.email ${{ secrets.OFFICIAL_EMAIL }}
git config --local user.name 'GitHub Actions'
git add .
git commit -m 'Deploy Build Output to Personal Repository'
git push origin main
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

리액트 숙련 주차 뉴스피드 팀 프로젝트에서 내 작업물을 올리고 공유하는 사이트를 만들었어요<br />
백엔드는 supabase를 이용했어요<br/><br/>
🔗 Story Book : https://storybook-nbt.vercel.app
🔗 Story Book : https://bloodfolio-system.vercel.app
<br/>
🔗 프로젝트 컨벤션 정리 : https://github.com/SpartaNBTTeam/newsfeed/issues/1
<br/>
Expand Down

0 comments on commit a0fbff1

Please sign in to comment.