Skip to content

Commit 186ba91

Browse files
committed
another workflow edit
1 parent d47a4e1 commit 186ba91

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: Set up Go
31-
uses: actions/setup-go@v4
31+
uses: actions/setup-go@v5
3232
with:
3333
go-version: 1.24
34-
35-
- name: Cache Go modules
36-
uses: actions/cache@v4
37-
with:
38-
path: ~/go/pkg/mod
39-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
40-
restore-keys: |
41-
${{ runner.os }}-go-
34+
cache: true
4235

4336
- name: Download Go modules
4437
run: go mod download

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
tags:
66
- "v*"
7-
7+
permissions:
8+
contents: write
89
jobs:
910
goreleaser:
1011
runs-on: ubuntu-latest
@@ -16,12 +17,12 @@ jobs:
1617
fetch-depth: 0
1718

1819
- name: Set up Go
19-
uses: actions/setup-go@v4
20+
uses: actions/setup-go@v5
2021
with:
2122
go-version: 1.24
2223

2324
- name: Run GoReleaser
24-
uses: goreleaser/goreleaser-action@v4
25+
uses: goreleaser/goreleaser-action@v5
2526
with:
2627
version: latest
2728
args: release

.goreleaser.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ builds:
2323

2424
archives:
2525
- format: binary
26-
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
27-
replacements:
28-
darwin: macos
26+
name_template: '{{ .ProjectName }}-{{- if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}'
2927

3028
checksum:
3129
name_template: 'checksums.txt'
@@ -34,4 +32,4 @@ snapshot:
3432
name_template: '{{ replace .Tag "v" "" }}-{{ .ShortCommit }}'
3533

3634
changelog:
37-
skip: true
35+
disable: true

0 commit comments

Comments
 (0)