Skip to content

Commit 62fb1d5

Browse files
committed
ci: enable pre-release tagging
1 parent a12bcc7 commit 62fb1d5

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: Semantic-Release CI
99

1010
on:
1111
push:
12-
branches: [notyet]
12+
branches: [main]
1313

1414
jobs:
1515
release:

.releaserc.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"branches": [
3-
"main",
4-
"next"
3+
{
4+
"name": "main"
5+
},
6+
{
7+
"name": "alpha",
8+
"prerelease": "alpha"
9+
}
510
],
611
"plugins": [
712
"@semantic-release/commit-analyzer",
@@ -13,11 +18,11 @@
1318
"assets": [
1419
{
1520
"path": "console_linux_x64",
16-
"label": "Linux x64 RPC Executable"
21+
"label": "Linux x64 Console Executable"
1722
},
1823
{
1924
"path": "console_windows_x64.exe",
20-
"label": "Windows x64 RPC Executable"
25+
"label": "Windows x64 Console Executable"
2126
}
2227
]
2328
}
@@ -26,7 +31,7 @@
2631
[
2732
"@semantic-release/exec",
2833
{
29-
"prepareCmd": "docker build -t vprodemo.azurecr.io/console:v${nextRelease.version} . && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_linux_x64 ./cmd/app/main.go && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_windows_x64.exe ./cmd/app/main.go",
34+
"prepareCmd": "docker build -t vprodemo.azurecr.io/console:v${nextRelease.version} . && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_linux_x64 ./cmd/app/main.go && CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags \"-s -w -X 'github.com/open-amt-cloud-toolkit/console/internal/app.Version=${nextRelease.version}'\" -trimpath -o console_windows_x64.exe ./cmd/app/main.go",
3035
"publishCmd": "docker push vprodemo.azurecr.io/console:v${nextRelease.version}",
3136
"verifyReleaseCmd": "echo v${nextRelease.version} > .nextVersion"
3237
}

0 commit comments

Comments
 (0)