Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy most recent version to latest on release #370

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ jobs:
if [[ "$newest_release" == "$version" ]]; then
echo "Updating 'latest' docs version with $version."
mike deploy --config-file ./mkdocs.insiders.yml --update-aliases --branch $branch_name --prefix=versions "$display_name" latest

# There is a bug in Mike where image url aliases don't get rewritten to latest.
# As of Sept 2023 Mike version 1.2.
# Known issue that should be fixed in Mike 2.0.
# https://github.com/jimporter/mike/issues/157
# For now, copying the latest numbered version folder to "latest"
# so someone doesn't have to do it manually.
cp ./versions/"$version" ./versions/latest
else
echo "Updating previous docs version with $version."
mike deploy --config-file ./mkdocs.insiders.yml --update-aliases --branch $branch_name --prefix=versions "$display_name"
Expand Down