From c3182a8746fbfedfbc3a9778130411bed4175f8a Mon Sep 17 00:00:00 2001 From: Jordi Clariana <657626+jordiclariana@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:07:54 +0100 Subject: [PATCH] Fix UI artifact upload and semver tests (#13) Signed-off-by: Jordi Clariana --- .github/workflows/release-ankorstore.yaml | 4 ++++ pkg/devspace/upgrade/upgrade.go | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-ankorstore.yaml b/.github/workflows/release-ankorstore.yaml index f77b729d5b..7f9b6e4899 100644 --- a/.github/workflows/release-ankorstore.yaml +++ b/.github/workflows/release-ankorstore.yaml @@ -68,6 +68,10 @@ jobs: echo "::set-output name=release_version::$RELEASE_VERSION" - name: Check out code into the Go module directory uses: actions/checkout@v1 + - name: Download ui tar + uses: actions/download-artifact@v2 + with: + name: ui-tar - name: install-upx run: brew install upx - name: Compile binaries diff --git a/pkg/devspace/upgrade/upgrade.go b/pkg/devspace/upgrade/upgrade.go index d447158f39..2b1b9429f5 100644 --- a/pkg/devspace/upgrade/upgrade.go +++ b/pkg/devspace/upgrade/upgrade.go @@ -2,11 +2,12 @@ package upgrade import ( "fmt" - "github.com/loft-sh/devspace/pkg/devspace/env" "os" "regexp" "sync" + "github.com/loft-sh/devspace/pkg/devspace/env" + "github.com/pkg/errors" "github.com/loft-sh/devspace/pkg/util/log" @@ -20,7 +21,7 @@ var version string var rawVersion string var githubSlug = "ankorstore/devspace" -var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+-aks.\d`) +var reVersion = regexp.MustCompile(`\d+\.\d+\.\d+(-aks.\d)?`) func eraseVersionPrefix(version string) (string, error) { indices := reVersion.FindStringIndex(version)