Skip to content

Commit

Permalink
chore: trigger CI on doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomzoy committed Feb 15, 2024
1 parent 72e2ff4 commit fe64062
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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 }}
Empty file added docs/_static/trigger_CI.txt
Empty file.

0 comments on commit fe64062

Please sign in to comment.