Skip to content

Commit

Permalink
Fixes for goreleaser v2
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Jun 6, 2024
1 parent 5c006b6 commit 5109354
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
with:
go-version: '1.22'
- name: Build snapshot with GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
version: latest
distribution: goreleaser
version: "~> v2"
args: build --clean --snapshot
- name: Run Gosec Security Scanner
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
go-version: '1.22'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
version: latest
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: humioctl

builds:
Expand Down Expand Up @@ -30,7 +31,7 @@ brews:
name: homebrew-humio
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/humio/cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
folder: Formula
directory: Formula
homepage: https://humio.com/
description: Manage and Stream Logs to Humio
test: |
Expand Down

0 comments on commit 5109354

Please sign in to comment.