diff --git a/.goreleaser/gitea.yml b/.goreleaser/gitea.yml index b4380f3..5518d47 100644 --- a/.goreleaser/gitea.yml +++ b/.goreleaser/gitea.yml @@ -16,7 +16,7 @@ builds: - arm64 archives: - - format: tar.gz + - formats: tar.gz # this name template makes the OS and Arch compatible with the results of uname. name_template: >- {{ .ProjectName }}_{{ .Version }}_ @@ -28,7 +28,7 @@ archives: # use zip for windows archives format_overrides: - goos: windows - format: zip + formats: zip checksum: name_template: 'checksums.txt' snapshot: diff --git a/.goreleaser/github.yml b/.goreleaser/github.yml index 408f769..2504bba 100644 --- a/.goreleaser/github.yml +++ b/.goreleaser/github.yml @@ -17,7 +17,7 @@ builds: - arm64 archives: - - format: tar.gz + - formats: tar.gz # this name template makes the OS and Arch compatible with the results of uname. name_template: >- {{ .ProjectName }}_{{ .Version }}_ @@ -29,7 +29,7 @@ archives: # use zip for windows archives format_overrides: - goos: windows - format: zip + formats: zip checksum: name_template: 'checksums.txt' snapshot: diff --git a/release b/release index 04ec51b..518d232 100755 --- a/release +++ b/release @@ -1,5 +1,8 @@ #!/bin/bash +set -eou pipefail export CURRENT_TAG="$(go run backy.go version -V)" +goreleaser -f .goreleaser/github.yml check +goreleaser -f .goreleaser/gitea.yml check changie batch $CURRENT_TAG changie merge git add .changes/