Skip to content

Commit

Permalink
ci: update CI workflows and Go version management
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 `check-latest: true`
- Update goreleaser action from v5 to v6

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 13, 2024
1 parent 05f6f20 commit ff4b76d
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"
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 ff4b76d

Please sign in to comment.