Skip to content

Commit

Permalink
update doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Jan 19, 2024
1 parent 2854d9a commit 5c927ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/sphinx_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
types: [opened, synchronize]
paths:
- 'docs/**/*'
release:
types: [published]
push:
branches:
- main

jobs:
pages:
Expand Down Expand Up @@ -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 }}

0 comments on commit 5c927ef

Please sign in to comment.