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)