Fix unstable version build file names
This commit is contained in:
parent
61d76e6875
commit
02b6dbd07d
2 changed files with 4 additions and 4 deletions
|
@ -406,7 +406,7 @@ steps:
|
||||||
path_style: true
|
path_style: true
|
||||||
strip_prefix: dist/zip/
|
strip_prefix: dist/zip/
|
||||||
source: dist/zip/*
|
source: dist/zip/*
|
||||||
target: /api/main/
|
target: /api/unstable/
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
|
@ -52,9 +52,9 @@ var (
|
||||||
Ldflags = ""
|
Ldflags = ""
|
||||||
Tags = ""
|
Tags = ""
|
||||||
VersionNumber = "dev"
|
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 = ""
|
BinLocation = ""
|
||||||
PkgVersion = "master"
|
PkgVersion = "unstable"
|
||||||
ApiPackages = []string{}
|
ApiPackages = []string{}
|
||||||
RootPath = ""
|
RootPath = ""
|
||||||
GoFiles = []string{}
|
GoFiles = []string{}
|
||||||
|
@ -101,7 +101,7 @@ func setBinLocation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func setPkgVersion() {
|
func setPkgVersion() {
|
||||||
if Version == "master" {
|
if Version == "unstable" {
|
||||||
PkgVersion = VersionNumber
|
PkgVersion = VersionNumber
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue