diff --git a/.github/workflows/pytest-docs.yml b/.github/workflows/pytest-docs.yml index 290e0232..b033368b 100644 --- a/.github/workflows/pytest-docs.yml +++ b/.github/workflows/pytest-docs.yml @@ -1,14 +1,7 @@ name: Build Docs on: - push: - branches: - - main - tags: - - "v*" - pull_request: - branches: - - main + [release, workflow_dispatch] jobs: build: @@ -41,7 +34,7 @@ jobs: cd docs_rst make html - name: Detect changes - if: contains(github.ref, 'refs/heads/main') + if: ${{ !contains(github.ref, 'refs/heads/main') }} id: changes shell: bash run: |