Skip to content

Commit 065002d

Browse files
authored
Merge pull request #191 from vatesfr/fix-goreleaser
CI: Update goreleaser configuration and fix tag sorting
2 parents 6fb410a + 2e3d8e2 commit 065002d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
go-version: "1.20"
2929
- name: Describe plugin
3030
id: plugin_describe
31-
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"
31+
run: echo "name=api_version::$(go run . describe | jq -r '.api_version')" >> $GITHUB_OUTPUT
3232
- name: Import GPG key
3333
id: import_gpg
3434
uses: crazy-max/ghaction-import-gpg@v5.0.0

.goreleaser.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ builds:
4646
goarch: '386'
4747
- goos: linux
4848
goarch: amd64
49+
- goos: windows
50+
goarch: arm
4951
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
5052
archives:
51-
- format: zip
53+
- formats: [ 'zip' ]
5254
files:
5355
- none*
5456
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
@@ -72,3 +74,16 @@ release:
7274

7375
changelog:
7476
disable: true
77+
78+
git:
79+
# What should be used to sort tags when gathering the current and previous
80+
# tags if there are more than one tag in the same commit.
81+
#
82+
# See: https://git-scm.com/docs/git-tag#Documentation/git-tag.txt---sortltkeygt
83+
#
84+
# Default: '-version:refname'.
85+
tag_sort: -version:creatordate
86+
87+
# What should be used to specify prerelease suffix while sorting tags when gathering
88+
# the current and previous tags if there are more than one tag in the same commit.
89+
prerelease_suffix: "-dev"

0 commit comments

Comments
 (0)