Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/publish_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
paths:
- 'docs/**'
workflow_dispatch:

permissions:
Expand All @@ -24,7 +27,19 @@ jobs:
run: |
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
- run: |
- name: Delete existing doc
run: |
git fetch origin gh-pages
mike delete ${{ github.head_ref }}
continue-on-error: true
- name: Deploy main
if: github.event_name == 'push'
run: |
git fetch origin gh-pages
mike delete main
mike deploy --push main
- name: Deploy branch
if: github.event_name == 'pull_request'
run: |
git fetch origin gh-pages
mike deploy --push ${{ github.head_ref }}
1 change: 1 addition & 0 deletions docs/_static/tmp_trigger_CI.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trigger1