ci: run two kind of jobs on docs publish (split release and dev)
This commit is contained in:
parent
910b6a5887
commit
849766ce8f
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docs.yml
vendored
6
.github/workflows/docs.yml
vendored
|
|
@ -30,6 +30,12 @@ jobs:
|
|||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
- name: build and push
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
run: |
|
||||
mike deploy ${{ github.ref_name }} latest --push --update-aliases
|
||||
mike set-default --push latest
|
||||
- name: build and push
|
||||
if: startsWith(github.ref, 'refs/heads/')
|
||||
run: |
|
||||
mike deploy dev --push --update-aliases
|
||||
mike set-default --push dev
|
||||
|
|
|
|||
Reference in a new issue