File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
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 }}
Original file line number Diff line number Diff 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+
4747archives :
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 }}'
5252checksum :
5353 name_template : ' {{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
5454 algorithm : sha256
You can’t perform that action at this time.
0 commit comments