Skip to content

Commit

Permalink
ci: move to using goreleaser v2 (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jun 6, 2024
2 parents afe53f7 + e0e2761 commit be65811
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 be65811

Please sign in to comment.