From 02b6dbd07de7cedb762f61442a290fa8f0771406 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 10 Feb 2021 19:56:51 +0100 Subject: [PATCH] Fix unstable version build file names --- .drone1.yml | 2 +- magefile.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone1.yml b/.drone1.yml index 7dabf364ee..83a82be8b7 100644 --- a/.drone1.yml +++ b/.drone1.yml @@ -406,7 +406,7 @@ steps: path_style: true strip_prefix: dist/zip/ source: dist/zip/* - target: /api/main/ + target: /api/unstable/ when: branch: - main diff --git a/magefile.go b/magefile.go index 3b62a535b8..4dc207ec7b 100644 --- a/magefile.go +++ b/magefile.go @@ -52,9 +52,9 @@ var ( Ldflags = "" Tags = "" VersionNumber = "dev" - Version = "master" // This holds the built version, master by default, when building from a tag or release branch, their name + Version = "unstable" // This holds the built version, unstable by default, when building from a tag or release branch, their name BinLocation = "" - PkgVersion = "master" + PkgVersion = "unstable" ApiPackages = []string{} RootPath = "" GoFiles = []string{} @@ -101,7 +101,7 @@ func setBinLocation() { } func setPkgVersion() { - if Version == "master" { + if Version == "unstable" { PkgVersion = VersionNumber } }