Skip to content

Commit 5675a96

Browse files
committed
Deploy tags to stable alias
1 parent 85cac66 commit 5675a96

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,14 @@ runs:
157157
git fetch origin gh-pages --depth=1
158158
159159
VERSION_TAG="${{ steps.docs.outputs.current_version }}"
160-
mike list
160+
161161
if [[ "${{ steps.docs.outputs.commit_type }}" == "main" ]]; then
162162
# Deploy main as "latest"
163-
mike deploy --push --update-aliases latest
164-
elif [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then
165-
# Deploy version tag and update latest alias
166163
mike deploy --push --update-aliases $VERSION_TAG latest
164+
elif [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then
165+
# Deploy version tag and update stable alias
166+
mike deploy --push --update-aliases $VERSION_TAG stable
167167
fi
168-
mike list
169168
170169
# Remove old patches and update the versions.json file
171170
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)