diff --git a/.github/workflows/nextjs-deploy.yml b/.github/workflows/nextjs-deploy.yml index 7e61955..e02c892 100644 --- a/.github/workflows/nextjs-deploy.yml +++ b/.github/workflows/nextjs-deploy.yml @@ -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