diff --git a/.github/workflows/publish-doc.yaml b/.github/workflows/publish-doc.yaml index b6744c60..4f20101b 100644 --- a/.github/workflows/publish-doc.yaml +++ b/.github/workflows/publish-doc.yaml @@ -46,9 +46,10 @@ jobs: run: | cd docs hugo - - name: Deploy website - if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }} - uses: JamesIves/github-pages-deploy-action@v4.5.0 + - name: Deployment + if: github.ref == 'refs/heads/main' + uses: peaceiris/actions-gh-pages@v3 with: - branch: docs - folder: docs/public + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: docs + publish_dir: ./docs/public