Skip to content

Commit

Permalink
gh-pages에 푸시 후 현재 브랜치에 푸시하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kaestro committed Sep 15, 2024
1 parent 824001d commit 9a05084
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/nextjs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
- name: Build the project
run: npm run build

- name: Export the project
run: npm run export

- name: Deploy to GitHub Pages
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add -A
git commit -m 'Deploy to GitHub Pages' || echo "No changes to commit"
git push origin HEAD:migration-taskforce
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: migration-taskforce

0 comments on commit 9a05084

Please sign in to comment.