diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 6f1938e..79ec122 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -1,6 +1,7 @@ on: pull_request: release: + types: [published] jobs: doc: @@ -13,7 +14,7 @@ jobs: - run: python -m pip install -e .[doc] - run: python doc/build.py - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' + if: ${{ github.ref == 'refs/heads/main' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: doc/_build/html