We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98675d commit e6f45b2Copy full SHA for e6f45b2
.github/workflows/docs.yml
@@ -31,10 +31,12 @@ jobs:
31
git config user.email [email protected]
32
33
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
34
- # Tag push: deploy the tag version
+ # Tag push: deploy the tag version with 'latest' alias and set as default
35
TAG_VERSION=${GITHUB_REF#refs/tags/}
36
echo "Deploying docs for tag $TAG_VERSION"
37
- mike deploy --push $TAG_VERSION
+ mike deploy --push --update-aliases $TAG_VERSION latest
38
+ echo "Setting $TAG_VERSION as default version"
39
+ mike set-default --push $TAG_VERSION
40
else
41
# Main branch push: deploy to 'main'
42
echo "Deploying docs for main branch"
0 commit comments