Ignore remote when forcing generation of docs (#1592)
Some checks failed
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-11-25 23:39:13 -06:00 • committed by GitHub
parent 411d181473
commit d3a3f65e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,13 +6,13 @@ current_branch="$(git branch --show-current)"
mike delete --all --push --allow-empty --ignore-remote-status
git checkout "master"
mike deploy --push "latest" "master"
mike deploy --push "latest" "master" --ignore-remote-status
for tag in $(git tag -l | sort --version-sort --reverse)
do
if git ls-tree -r --name-only "${tag}" | grep -q 'mkdocs.yml'; then
git checkout "${tag}"
mike deploy --push "${tag}"
mike deploy --push "${tag}" --ignore-remote-status
fi
done
@ -21,6 +21,6 @@ done
#mike alias --push "${latest}" "latest"
#mike alias --push "latest" "latest"
mike set-default --push "latest"
mike set-default --push "latest" --ignore-remote-status
git checkout "${current_branch}"