From d6787ab4dd579104949cc1d6df4d1abb72b3b7fe Mon Sep 17 00:00:00 2001 From: Luca Tassinari Date: Tue, 20 Feb 2024 15:27:35 +0100 Subject: [PATCH] ci: replace old deployment step --- .github/workflows/publish-doc.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-doc.yaml b/.github/workflows/publish-doc.yaml index a4b4fc69..b6744c60 100644 --- a/.github/workflows/publish-doc.yaml +++ b/.github/workflows/publish-doc.yaml @@ -46,10 +46,9 @@ jobs: run: | cd docs hugo - - name: Deployment - if: github.ref == 'refs/heads/master' - uses: peaceiris/actions-gh-pages@v3 + - name: Deploy website + if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }} + uses: JamesIves/github-pages-deploy-action@v4.5.0 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: docs - publish_dir: ./docs/public + branch: docs + folder: docs/public