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 }}