1
0
Fork 0

ci: run two kind of jobs on docs publish (split release and dev)

This commit is contained in:
Vojtěch Mareš 2022-09-10 18:18:51 +02:00
parent 910b6a5887
commit 849766ce8f
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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