From 5c927effeadf91099038fe1326aaa7471bc4634d Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Fri, 19 Jan 2024 18:06:01 +0800 Subject: [PATCH] update doc workflow --- .github/workflows/sphinx_docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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