mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04: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 }}
|
||||
run: |
|
||||
if [ "$REF_TYPE" = "tag" ]; then
|
||||
mike deploy --push --update-aliases "$REF_NAME" latest
|
||||
mike set-default --push latest
|
||||
mike deploy "$REF_NAME" "latest" --allow-empty --ignore-remote-status --update-aliases
|
||||
mike set-default "latest"
|
||||
git checkout gh-pages
|
||||
git push -f origin gh-pages
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue