mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-19 22:46:34 -05:00
Update mkdocs build action (#1458)
This commit is contained in:
parent
923d9608e8
commit
6eca711f58
1 changed files with 7 additions and 3 deletions
10
.github/workflows/mkdocs.yml
vendored
10
.github/workflows/mkdocs.yml
vendored
|
|
@ -38,8 +38,12 @@ jobs:
|
||||||
REF_NAME: ${{ github.ref_name }}
|
REF_NAME: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
if [ "$REF_TYPE" = "tag" ]; then
|
if [ "$REF_TYPE" = "tag" ]; then
|
||||||
mike deploy --push --update-aliases "$REF_NAME" latest
|
mike deploy "$REF_NAME" "latest" --allow-empty --ignore-remote-status --update-aliases
|
||||||
mike set-default --push latest
|
mike set-default "latest"
|
||||||
|
git checkout gh-pages
|
||||||
|
git push -f origin gh-pages
|
||||||
elif [ "$REF_TYPE" = "branch" ] && [ "$REF_NAME" = "master" ]; then
|
elif [ "$REF_TYPE" = "branch" ] && [ "$REF_NAME" = "master" ]; then
|
||||||
mike deploy --push master
|
mike deploy "master" --ignore-remote-status --allow-empty
|
||||||
|
git checkout gh-pages
|
||||||
|
git push -f origin gh-pages
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue