Skip to content

Commit 9a26d29

Browse files
oktalzGopher Bot
authored andcommitted
BUILD/MEDIUM: update goreleaser setup
1 parent db88323 commit 9a26d29

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6
1212
with:
1313
# we have to fetch all history to be able to generate the release note. c.f. https://goreleaser.com/ci/actions/.
1414
fetch-depth: 0
1515
- name: Set up Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v6
1717
with:
18-
go-version-file: "go.mod"
18+
go-version: 'stable' # Latest stable version
1919
check-latest: true
2020
- name: Run GoReleaser
21-
uses: goreleaser/goreleaser-action@v4
21+
uses: goreleaser/goreleaser-action@v6
2222
with:
2323
distribution: goreleaser
24-
version: 1.17.1
24+
version: '~> v2'
2525
args: release --clean
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
7-
# http:#www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
version: 2
1415
before:
1516
hooks:
1617
- go mod tidy
@@ -55,8 +56,6 @@ archives:
5556
{{.Binary}}_{{.Version}}_{{$prettyOS}}_{{$prettyArch}}
5657
checksum:
5758
name_template: 'checksums.txt'
58-
snapshot:
59-
name_template: "{{ .Tag }}-next"
6059
release:
6160
draft: false
62-
name_template: "HAProxy Ingress Controller v{{.Version}}"
61+
name_template: '{{- if .IsSnapshot }}{{ .Tag }}-next{{ else }}HAProxy Ingress Controller v{{ .Version }}{{ end -}}'

0 commit comments

Comments
 (0)