Skip to content

Commit

Permalink
ci: Migrate off of deprecated GoReleaser options (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
jalseth authored Jul 9, 2023
1 parent a6c6055 commit ffb3c96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
- name: release
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 10 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ builds:
- "-X github.com/open-policy-agent/conftest/internal/commands.version={{.Version}}"

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "linux" }}Linux
{{- else if eq .Os "windows" }}Windows
{{- else if eq .Os "darwin" }}Darwin
{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
Expand Down

0 comments on commit ffb3c96

Please sign in to comment.