Skip to content

Commit 7e697fc

Browse files
authored
Merge pull request #4 from compas-dev/debug-mike
Fix deployment of latest vs tag
2 parents 7b968ec + 85ee1b8 commit 7e697fc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

action.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,8 @@ runs:
157157
git fetch origin gh-pages --depth=1
158158
159159
VERSION_TAG="${{ steps.docs.outputs.current_version }}"
160-
if [[ "${{ steps.docs.outputs.commit_type }}" == "main" ]]; then
161-
# Deploy main as "latest"
162-
mike deploy --push --update-aliases latest
163-
elif [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then
160+
161+
if [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then
164162
# Deploy version tag and update latest alias
165163
mike deploy --push --update-aliases $VERSION_TAG latest
166164
fi

0 commit comments

Comments
 (0)