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
|
||||
strip_prefix: dist/zip/
|
||||
source: dist/zip/*
|
||||
target: /api/main/
|
||||
target: /api/unstable/
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue