Skip to content

Commit

Permalink
ci: standardize Go setup and update CI configurations
Browse files Browse the repository at this point in the history
- Rename "Checkout" to "Checkout repository"
- Rename "Set up Go" to "Setup go"
- Change Go version specification to use `go-version-file: go.mod` and add `check-latest: true`
- Update goreleaser action from v5 to v6

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 14, 2024
1 parent 7a5cf89 commit 7bfb130
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go

- name: Setup go
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version-file: go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
Expand Down

0 comments on commit 7bfb130

Please sign in to comment.