Skip to content

Commit 1b88b1a

Browse files
committed
ci: fix docs deploy default issue
1 parent fe27806 commit 1b88b1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ jobs:
5454
VERSION="${{ steps.version.outputs.version }}"
5555
5656
# always deploy the version (prereleases included)
57-
uv run --group docs mike deploy --push --update-aliases "$VERSION" latest
57+
uv run --group docs mike deploy --push "$VERSION"
5858
59-
# only set default if it's NOT a prerelease
59+
# only update aliases + default if it's NOT a prerelease
6060
if [[ "$VERSION" != *-* ]]; then
61+
echo "Updating 'latest' alias to $VERSION"
62+
uv run --group docs mike alias latest "$VERSION" --push
63+
6164
echo "Setting default to $VERSION"
6265
uv run --group docs mike set-default "$VERSION" --push
6366
else
64-
echo "Skipping set-default: $VERSION is a prerelease"
67+
echo "Skipping alias+default: $VERSION is a prerelease"
6568
fi

0 commit comments

Comments
 (0)