Skip to content

Commit b56df7b

Browse files
committed
ci: package name
1 parent e5f2a86 commit b56df7b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/pro_selfhosted_release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
APP_BUILD_TYPE=pro_selfhosted \
6060
GITHUB_TOKEN=${{ secrets.GH_TOKEN }} \
6161
GPG_KEY_ID="${{ vars.GPG_KEY_ID }}" \
62+
PROJECT_NAME=semaphorepro \
63+
PACKAGE_NAME=semaphorepro \
6264
task release:prod
6365
6466
deploy-prod:

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ before:
55
- task build:fe
66

77
builds:
8-
- binary: semaphore
8+
- binary: "{{ .Env.PROJECT_NAME | default \"semaphore\" }}"
99
env:
1010
- CGO_ENABLED=0
1111
main: ./cli/main.go
@@ -64,9 +64,10 @@ snapshot:
6464
name_template: "{{ .Timestamp }}-{{ .ShortCommit }}-SNAPSHOT"
6565

6666
nfpms:
67-
- file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
67+
- file_name_template: "{{ .Env.PROJECT_NAME | default .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
68+
package_name: "{{ .Env.PACKAGE_NAME | default (.Env.PROJECT_NAME | default .ProjectName) }}"
6869
description: Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
69-
homepage: https://github.com/semaphoreui/semaphore
70+
homepage: https://semaphoreui.com
7071
vendor: Semaphore UI
7172
maintainer: Denis Gukov <[email protected]>
7273
license: MIT

0 commit comments

Comments
 (0)