From 268a470e02ec1bd9f3ee8ca0ce93f67a35c41f74 Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Fri, 17 Apr 2026 11:46:46 +0200 Subject: [PATCH 1/4] set lastes as default version for mike, otherwise index.html isn't created --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d3e4da8..8583464 100644 --- a/action.yml +++ b/action.yml @@ -159,8 +159,8 @@ runs: VERSION_TAG="${{ steps.docs.outputs.current_version }}" if [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then - # Deploy version tag and update latest alias - mike deploy --push --update-aliases $VERSION_TAG latest + # Deploy version tag and update latest alias, --set-default makes sure there's an index.html which points to latest + mike deploy $VERSION_TAG latest --push --update-aliases --set-default latest --allow-undefined fi # Remove old patches and update the versions.json file From 804af470ae7d7e65dcf13786034b8ead696aa9b9 Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Fri, 17 Apr 2026 11:52:26 +0200 Subject: [PATCH 2/4] oops, it's a separate command.. --- action.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8583464..9cf7891 100644 --- a/action.yml +++ b/action.yml @@ -159,8 +159,11 @@ runs: VERSION_TAG="${{ steps.docs.outputs.current_version }}" if [[ "${{ steps.docs.outputs.commit_type }}" == "tag" ]]; then - # Deploy version tag and update latest alias, --set-default makes sure there's an index.html which points to latest - mike deploy $VERSION_TAG latest --push --update-aliases --set-default latest --allow-undefined + # Deploy version tag and update latest alias + mike deploy --push --update-aliases $VERSION_TAG latest + + # set-default makes sure there's an index.html which points to latest, allow-undefined allows it to work even if the tag is not in the versions.json yet (e.g. first time release) + mike set-default latest --allow-undefined fi # Remove old patches and update the versions.json file From f0ea91e2a39502bfee29879d79c6a0277d9a60a1 Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Fri, 17 Apr 2026 13:14:05 +0200 Subject: [PATCH 3/4] don't forget to push --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9cf7891..d93ce51 100644 --- a/action.yml +++ b/action.yml @@ -163,7 +163,7 @@ runs: mike deploy --push --update-aliases $VERSION_TAG latest # set-default makes sure there's an index.html which points to latest, allow-undefined allows it to work even if the tag is not in the versions.json yet (e.g. first time release) - mike set-default latest --allow-undefined + mike set-default latest --allow-undefined --push fi # Remove old patches and update the versions.json file From 0a7d828da7ab6466bbbdb8eaccb776ffad607be4 Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Fri, 17 Apr 2026 13:57:23 +0200 Subject: [PATCH 4/4] no need to allow undefined, setting default happens always after deployment --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d93ce51..31a4875 100644 --- a/action.yml +++ b/action.yml @@ -163,7 +163,7 @@ runs: mike deploy --push --update-aliases $VERSION_TAG latest # set-default makes sure there's an index.html which points to latest, allow-undefined allows it to work even if the tag is not in the versions.json yet (e.g. first time release) - mike set-default latest --allow-undefined --push + mike set-default latest --push fi # Remove old patches and update the versions.json file