From ca083388c521d17cd0655e7c0ec0f0559046215b Mon Sep 17 00:00:00 2001 From: Luca Tassinari Date: Tue, 20 Feb 2024 15:21:44 +0100 Subject: [PATCH] ci: deployment step --- .github/workflows/publish-doc.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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