Skip to content

Commit

Permalink
ci: update GitHub Actions workflow for improved CI/CD
Browse files Browse the repository at this point in the history
- Set `fetch-depth` to 0 in the GitHub Actions workflow
- Add `check-latest: true` to the Go version configuration
- 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 b7c421c commit 1bfad82
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

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 1bfad82

Please sign in to comment.