diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7a1f90994..42854dff4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,6 +2,13 @@ name: docs on: push: + tags: + - v* + branches: + - master + pull_request: + branches: + - master env: STABLE_PYTHON_VERSION: "3.12" @@ -41,7 +48,7 @@ jobs: publish: name: Publish docs - if: github.ref == 'refs/heads/master' + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') needs: build runs-on: ubuntu-latest