diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..333e78d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/README.md b/README.md index 73d7ed2..7ed1f98 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 리액트 숙련 주차 뉴스피드 팀 프로젝트에서 내 작업물을 올리고 공유하는 사이트를 만들었어요
백엔드는 supabase를 이용했어요

-🔗 Story Book : https://storybook-nbt.vercel.app +🔗 Story Book : https://bloodfolio-system.vercel.app
🔗 프로젝트 컨벤션 정리 : https://github.com/SpartaNBTTeam/newsfeed/issues/1