Skip to content

Commit

Permalink
ci: move to using goreleaser v2
Browse files Browse the repository at this point in the history
The deprecations we had were the brew.folder property, renamed to directory and the usage of
--skip-<value> flags which are replaced by a single --skip flag that accepts the values to skip
  • Loading branch information
ewanharris committed Jun 6, 2024
1 parent afe53f7 commit e0e2761
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ jobs:
- uses: anchore/sbom-action/download-syft@e8d2a6937ecead383dfe75190d104edd1f9c5751 # v0.16.0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
distribution: goreleaser
version: latest
args: release --clean --config .goreleaser.yaml --snapshot --skip-sign --skip-publish --skip-announce
version: '~> v2'
args: release --clean --config .goreleaser.yaml --snapshot --skip sign,publish,announce

goreleaser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -161,10 +161,10 @@ jobs:

- name: Run GoReleaser
id: goreleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
distribution: goreleaser
version: latest
version: '~> v2'
args: release --clean --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

project_name: fga

before:
Expand Down Expand Up @@ -126,7 +128,7 @@ brews:
homepage: "https://openfga.dev/"
description: "A cross-platform CLI to interact with an OpenFGA server."
license: "Apache-2.0"
folder: "Formula"
directory: "Formula"
url_template: "https://github.com/openfga/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy

Expand All @@ -152,7 +154,7 @@ brews:
homepage: "https://openfga.dev/"
description: "A cross-platform CLI to interact with an OpenFGA server."
license: "Apache-2.0"
folder: "Formula"
directory: "Formula"
url_template: "https://github.com/openfga/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy

Expand Down

0 comments on commit e0e2761

Please sign in to comment.