Skip to content

Commit

Permalink
ci: update CI workflow and GoReleaser configuration
Browse files Browse the repository at this point in the history
- Change single quotes to double quotes in the workflow trigger
- Rename job steps for clarity
- Update Go version setup to use `go.mod` file and check for the latest version
- Update GoReleaser action to version 6
- Modify GoReleaser arguments from `--rm-dist` to `--clean`

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 13, 2024
1 parent 7b5b3bc commit 3ded294
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Goreleaser
on:
push:
tags:
- '*'
- "*"

permissions:
contents: write
Expand All @@ -12,23 +12,22 @@ 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.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
go-version-file: go.mod
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3ded294

Please sign in to comment.