Browse Source

Update mkdocs build action (#1458)

pull/1459/head
trapexit 2 weeks ago
committed by GitHub
parent
commit
d8d935a7aa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      .github/workflows/mkdocs.yml

6
.github/workflows/mkdocs.yml

@ -38,8 +38,8 @@ 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 set-default --push latest
mike deploy "$REF_NAME" "latest" --push --allow-empty --ignore-remote-status --update-aliases
mike set-default --push "latest"
elif [ "$REF_TYPE" = "branch" ] && [ "$REF_NAME" = "master" ]; then elif [ "$REF_TYPE" = "branch" ] && [ "$REF_NAME" = "master" ]; then
mike deploy --push master
mike deploy master --push --ignore-remote-status --allow-empty
fi fi
Loading…
Cancel
Save