Fix unstable version build file names

This commit is contained in:
kolaente 2021-02-10 19:56:51 +01:00
parent 61d76e6875
commit 02b6dbd07d
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 4 additions and 4 deletions

View file

@ -406,7 +406,7 @@ steps:
path_style: true
strip_prefix: dist/zip/
source: dist/zip/*
target: /api/main/
target: /api/unstable/
when:
branch:
- main

View file

@ -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
}
}