Skip to content

Commit 9caa5cd

Browse files
committed
update release assets name
Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
1 parent c0e2032 commit 9caa5cd

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@ jobs:
4141
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
4242
- name: Unshallow
4343
run: git fetch --prune --unshallow
44+
4445
- name: Set up Go
4546
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
4647
with:
4748
go-version: ${{ needs.get-go-version.outputs.go-version }}
49+
4850
- name: Describe plugin
4951
id: plugin_describe
5052
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"
51-
- name: Install signore
52-
uses: hashicorp/setup-signore-package@v1
53+
5354
- name: Run GoReleaser
5455
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
5556
with:
@@ -58,6 +59,3 @@ jobs:
5859
env:
5960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6061
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}
61-
SIGNORE_CLIENT_ID: ${{ secrets.SIGNORE_CLIENT_ID }}
62-
SIGNORE_CLIENT_SECRET: ${{ secrets.SIGNORE_CLIENT_SECRET }}
63-
SIGNORE_SIGNER: ${{ secrets.SIGNORE_SIGNER }}

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ builds:
2525
- linux
2626
goarch:
2727
- amd64
28-
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
28+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
2929
-
3030
id: linux-builds
3131
mod_timestamp: '{{ .CommitTimestamp }}'
@@ -37,18 +37,18 @@ builds:
3737
- linux
3838
goarch:
3939
- amd64
40-
- '386'
4140
- arm
4241
- arm64
4342
ignore:
4443
- goos: linux
4544
goarch: amd64
46-
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
45+
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
46+
4747
archives:
4848
- format: zip
4949
files:
5050
- none*
51-
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
51+
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
5252
checksum:
5353
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
5454
algorithm: sha256

0 commit comments

Comments
 (0)