From 8aa47bbdfc306d3072972643b34a8e4d1ebfb9ab Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Mon, 22 Jan 2024 11:27:11 +0800 Subject: [PATCH] test page deploy --- .github/workflows/sphinx_docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx_docs.yml b/.github/workflows/sphinx_docs.yml index 459416632..c1f1eb60c 100644 --- a/.github/workflows/sphinx_docs.yml +++ b/.github/workflows/sphinx_docs.yml @@ -8,7 +8,7 @@ on: push: branches: - main - - 'feature/*' + - 'feature/**' jobs: pages: @@ -38,6 +38,7 @@ jobs: name: SphinxDoc path: ${{ steps.deployment.outputs.artifact }} - uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || startsWith(github.ref_name, 'feature')) }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ steps.deployment.outputs.artifact }} \ No newline at end of file