diff --git a/.github/workflows/sphinx_docs.yml b/.github/workflows/sphinx_docs.yml index 6e533b9db..90a519c53 100644 --- a/.github/workflows/sphinx_docs.yml +++ b/.github/workflows/sphinx_docs.yml @@ -5,8 +5,9 @@ on: types: [opened, synchronize] paths: - 'docs/**/*' - release: - types: [published] + push: + branches: + - main jobs: pages: @@ -36,7 +37,7 @@ jobs: name: SphinxDoc path: ${{ steps.deployment.outputs.artifact }} - uses: peaceiris/actions-gh-pages@v3 - if: github.event_name == 'release' + if: github.event_name == 'push' && github_ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ steps.deployment.outputs.artifact }} \ No newline at end of file