Skip to content

Commit 86d2951

Browse files
committed
add push event name check
1 parent 5f55d25 commit 86d2951

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy-manual.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
- name: Create nojekyll
3939
run: echo > ./manual/dist/.nojekyll
4040

41-
- name: Deploy to gh-pages branch
42-
uses: peaceiris/actions-gh-pages@v4
41+
- name: Deploy to gh-pages
42+
if: ${{ github.event_name == 'push' }}
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_branch: gh-pages
4645
publish_dir: ./manual/dist
46+
force_orphan: true

0 commit comments

Comments
 (0)