1
0
forked from um/cli

ci: fix duplicated name

This commit is contained in:
Unlock Music Dev 2022-11-27 07:47:42 +08:00
parent 04320bd45a
commit e7d360362e
Signed by untrusted user: um-dev
GPG Key ID: 95202E10D3413A1D
2 changed files with 11 additions and 11 deletions

View File

@ -19,7 +19,7 @@ local CreateRelease() = {
local StepGoBuild(GOOS, GOARCH) = { local StepGoBuild(GOOS, GOARCH) = {
local filepath = 'dist/um-%s-%s.tar.gz' % [GOOS, GOARCH], local filepath = 'dist/um-%s-%s.tar.gz' % [GOOS, GOARCH],
name: 'go build', name: 'go build %s/%s' % [GOOS, GOARCH],
image: 'golang:1.19', image: 'golang:1.19',
environment: { environment: {
GOOS: GOOS, GOOS: GOOS,

View File

@ -19,7 +19,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: linux GOOS: linux
image: golang:1.19 image: golang:1.19
name: go build name: go build linux/amd64
- commands: - commands:
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-linux-amd64.tar.gz" - curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-linux-amd64.tar.gz"
"$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-linux-amd64.tar.gz" "$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-linux-amd64.tar.gz"
@ -53,7 +53,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: windows GOOS: windows
image: golang:1.19 image: golang:1.19
name: go build name: go build windows/amd64
- commands: - commands:
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-windows-amd64.tar.gz" - curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-windows-amd64.tar.gz"
"$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-windows-amd64.tar.gz" "$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-windows-amd64.tar.gz"
@ -87,7 +87,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: darwin GOOS: darwin
image: golang:1.19 image: golang:1.19
name: go build name: go build darwin/amd64
- commands: - commands:
- curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-darwin-amd64.tar.gz" - curl --fail --include --user "um-release-bot:$GITEA_API_KEY" --upload-file "dist/um-darwin-amd64.tar.gz"
"$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-darwin-amd64.tar.gz" "$DRONE_GITEA_SERVER/api/packages/${DRONE_REPO_NAMESPACE}/generic/${DRONE_REPO_NAME}-build/${DRONE_BUILD_NUMBER}/um-darwin-amd64.tar.gz"
@ -125,7 +125,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: linux GOOS: linux
image: golang:1.19 image: golang:1.19
name: go build name: go build linux/amd64
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -135,7 +135,7 @@ steps:
GOARCH: arm64 GOARCH: arm64
GOOS: linux GOOS: linux
image: golang:1.19 image: golang:1.19
name: go build name: go build linux/arm64
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -145,7 +145,7 @@ steps:
GOARCH: "386" GOARCH: "386"
GOOS: linux GOOS: linux
image: golang:1.19 image: golang:1.19
name: go build name: go build linux/386
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -155,7 +155,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: windows GOOS: windows
image: golang:1.19 image: golang:1.19
name: go build name: go build windows/amd64
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -165,7 +165,7 @@ steps:
GOARCH: "386" GOARCH: "386"
GOOS: windows GOOS: windows
image: golang:1.19 image: golang:1.19
name: go build name: go build windows/386
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -175,7 +175,7 @@ steps:
GOARCH: amd64 GOARCH: amd64
GOOS: darwin GOOS: darwin
image: golang:1.19 image: golang:1.19
name: go build name: go build darwin/amd64
- commands: - commands:
- DIST_DIR=$(mktemp -d) - DIST_DIR=$(mktemp -d)
- go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags - go build -v -trimpath -ldflags="-w -s -X main.AppVersion=$(git describe --tags
@ -185,7 +185,7 @@ steps:
GOARCH: arm64 GOARCH: arm64
GOOS: darwin GOOS: darwin
image: golang:1.19 image: golang:1.19
name: go build name: go build darwin/arm64
- image: plugins/gitea-release - image: plugins/gitea-release
name: create release name: create release
settings: settings: