From f5a2f91120f3496eddfcfea8ce6cb9020f57d0ce Mon Sep 17 00:00:00 2001 From: paoloyx Date: Thu, 20 Jun 2024 18:35:43 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20deploy=20docs=20when=20=E2=80=9Cmain?= =?UTF-8?q?=E2=80=9D=20pushed=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs-workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-workflow.yml b/.github/workflows/docs-workflow.yml index f8a884e8..38b57f7a 100644 --- a/.github/workflows/docs-workflow.yml +++ b/.github/workflows/docs-workflow.yml @@ -39,7 +39,7 @@ jobs: run: yarn build - name: Upload Build Artifact - if: ${{ startsWith(github.ref, 'refs/tags/v') }} + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v3 with: path: ./docs/build @@ -47,7 +47,7 @@ jobs: deploy-doc: name: Deploy to GitHub Pages needs: [build-doc] - if: ${{ startsWith(github.ref, 'refs/tags/v') }} + if: github.event_name != 'pull_request' runs-on: ubuntu-22.04 defaults: run: @@ -66,4 +66,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4