diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 365773e58..7c5b1a45e 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -61,7 +61,7 @@ jobs: retention-days: 7 - name: Deploy to gh-pages - if: github.ref == 'refs/heads/main' + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') uses: JamesIves/github-pages-deploy-action@3.7.1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}