Skip to content

Commit

Permalink
Update goreleaser action (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangreco authored Sep 13, 2023
1 parent cd20da4 commit 147ac8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t ghcr.io/nerdswords/yet-another-cloudwatch-exporter:${{github.ref_name}} --build-arg VERSION=${{github.ref_name}} --push .

- name: Build && release binaries
uses: docker://goreleaser/goreleaser:v1.16.0
uses: goreleaser/goreleaser-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: release
args: release --clean
10 changes: 6 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ builds:
env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: Darwin
linux: Linux
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
files:
- none*
changelog:
Expand Down

0 comments on commit 147ac8a

Please sign in to comment.