Skip to content

Commit

Permalink
Use latest version of goreleaser action (#3645)
Browse files Browse the repository at this point in the history
GoReleaser was bumped to 2.0 recently and we didn't pin it.

The `--rm-dist` flag was removed in 2.0 so it no longer works.
  • Loading branch information
pietern committed Jun 5, 2024
1 parent 57b566b commit 732fa61
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
Expand All @@ -19,22 +18,22 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.21.x
-
name: Import GPG key

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
-
name: Pull external libraries

- name: Pull external libraries
run: make vendor
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
version: ~> v2
args: release --clean
env:
# use GITHUB_TOKEN that is already available in secrets.GITHUB_TOKEN
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
Expand Down

0 comments on commit 732fa61

Please sign in to comment.