From ec7becd4269698bc6d2c8d218bbe92b94f21035e Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 13 Feb 2021 16:32:26 +0100 Subject: [PATCH] Check if we're on main and change the version name accordingly if that's the case --- magefile.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index 4dc207ec..a4733b43 100644 --- a/magefile.go +++ b/magefile.go @@ -90,6 +90,10 @@ func setVersion() { } else if os.Getenv("DRONE_BRANCH") != "" { Version = strings.Replace(os.Getenv("DRONE_BRANCH"), "release/v", "", 1) } + + if Version == "main" { + Version = "unstable" + } } func setBinLocation() { @@ -447,7 +451,6 @@ type Release mg.Namespace func (Release) Release(ctx context.Context) error { mg.Deps(initVars) mg.Deps(Release.Dirs) - mg.Deps(Release.Windows, Release.Linux, Release.Darwin) // Run compiling in parallel to speed it up errs, _ := errgroup.WithContext(ctx)