diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 0d0a8ff..f7711db 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -54,8 +54,10 @@ jobs: git status ls -la - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 + - name: Deploy to GitHub pages 🚀 + if: github.event_name != 'pull_request' + uses: JamesIves/github-pages-deploy-action@v4.4.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs # Directory where bookdown outputs the HTML files + clean: false + branch: gh-pages + folder: ./docs