Skip to content

Commit 85ee1b8

Browse files
committed
Promising approach
1 parent 5675a96 commit 85ee1b8

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,9 @@ runs:
158158
159159
VERSION_TAG="${{ steps.docs.outputs.current_version }}"
160160
161-
if [[ "${{ steps.docs.outputs.commit_type }}" == "main" ]]; then
162-
# Deploy main as "latest"
161+
if [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then
162+
# Deploy version tag and update latest alias
163163
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
167164
fi
168165
169166
# Remove old patches and update the versions.json file

0 commit comments

Comments
 (0)