Skip to content

Commit

Permalink
ci: update docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Aug 24, 2024
1 parent 0f79ea0 commit a2df03a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
tags:
- '*'
paths:
- '.github/workflows/*'
- 'docs/**'
Expand Down Expand Up @@ -44,5 +46,5 @@ jobs:
- run: pip install -r docs/requirements.txt
- if: github.event_name == 'push'
run: mike deploy --push latest
- if: github.event_name == 'release'
run: mike deploy --push --update-aliases ${{ github.event.release.tag_name }} stable
- if: contains(github.ref, 'refs/tags/')
run: mike deploy --push --update-aliases ${{ github.ref_name }} stable

0 comments on commit a2df03a

Please sign in to comment.