Skip to content

Commit f42a73e

Browse files
committed
ci: Update aliases when deploying with mike
This is needed because we expect aliases we are deploying to already exist, and mike by default will only create new aliases, but not "move" them. For example, if the current stable is v0.10.0 (`mike` version will be `v0.10` and `latest` and `v0` will point to it) and we just released v0.11.0, then the `latest` and `v0` aliases will need to be changed to point to `v0.11`. For more details see: https://github.com/jimporter/mike#building-your-docs Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 3d8e919 commit f42a73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
VERSION: ${{ steps.mike-metadata.outputs.version }}
175175
ALIASES: ${{ steps.mike-metadata.outputs.aliases }}
176176
run: |
177-
mike deploy --push "$VERSION" $ALIASES
177+
mike deploy --push --update-aliases "$VERSION" $ALIASES
178178
179179
create-github-release:
180180
needs: ["publish-docs"]

0 commit comments

Comments
 (0)