Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix CI to follow the deprecation of goreleaser flags #755

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ jobs:
- uses: actions/checkout@v2
- uses: goreleaser/goreleaser-action@v2
with:
args: release --snapshot --skip-publish --rm-dist
args: release --snapshot --skip=publish --clean
35 changes: 19 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

version: 2

builds:
- env:
Expand All @@ -9,13 +10,13 @@ builds:
- windows
- darwin
goarch:
- 386
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
goarch: "386"

id: jsonnet
main: ./cmd/jsonnet
Expand All @@ -30,13 +31,13 @@ builds:
- windows
- darwin
goarch:
- 386
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
goarch: "386"

id: jsonnetfmt
main: ./cmd/jsonnetfmt
Expand All @@ -49,13 +50,13 @@ builds:
- windows
- darwin
goarch:
- 386
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
goarch: "386"

id: jsonnet-lint
main: ./cmd/jsonnet-lint
Expand All @@ -68,26 +69,28 @@ builds:
- windows
- darwin
goarch:
- 386
- "386"
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
goarch: "386"

id: jsonnet-deps
main: ./cmd/jsonnet-deps
binary: jsonnet-deps


archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}

checksum:
name_template: "checksums.txt"

Expand Down
Loading