From 724fa66688189339b8ed9e7f22cf953d268a534b Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Tue, 13 Sep 2022 16:47:40 -0300 Subject: [PATCH] run every PR but pubish only when tags --- .github/workflows/deploy-docs.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 0002cc1..e13042d 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,9 +1,6 @@ name: Build and Deploy docs -on: - pull_request: - push: - branches: [main] +on: ["push", "pull_request"] jobs: run: @@ -35,7 +32,7 @@ jobs: popd - name: GitHub Pages action - if: github.ref == 'refs/heads/main' + if: ${{ github.event_name == 'release' }} uses: peaceiris/actions-gh-pages@v3.6.1 with: github_token: ${{ secrets.GITHUB_TOKEN }}