Skip to content

Commit 05e0341

Browse files
committed
Update GitHub actions to use latest stable builds of go at all times, without defining them.
1 parent 2cb049b commit 05e0341

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,16 @@ jobs:
44
build:
55
strategy:
66
matrix:
7-
go-version: ['1.20.0']
8-
os: [ubuntu-latest]
9-
runs-on: ${{ matrix.os }}
7+
go-version: ['stable']
8+
runs-on: ubuntu-latest
109
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
1112
- name: Install Go
1213
uses: actions/setup-go@v3
1314
with:
1415
go-version: ${{ matrix.go-version }}
15-
- name: Checkout code
16-
uses: actions/checkout@v3
17-
- name: Cash Builder
18-
uses: actions/cache@v3
19-
with:
20-
path: |
21-
~/.cache/go-build
22-
~/go/pkg/mod
23-
key: ${{ runner.os }}-go-${{ matrix.go-version }}
16+
check-latest: true
17+
cache: true
2418
- name: Build
2519
run: go build

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
name: Set up Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: ${{ secrets.GO_LATEST }}
21+
go-version: stable
22+
check-latest: true
23+
cache: true
2224
-
2325
name: Import GPG key
2426
id: import_gpg
@@ -30,13 +32,9 @@ jobs:
3032
name: Run GoReleaser
3133
uses: goreleaser/goreleaser-action@v4
3234
with:
33-
# either 'goreleaser' (default) or 'goreleaser-pro'
3435
distribution: goreleaser
3536
version: latest
3637
args: release --clean
3738
env:
3839
GITHUB_TOKEN: ${{ secrets.GIT_PAT }}
3940
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
40-
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
41-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
42-

0 commit comments

Comments
 (0)