Skip to content

Commit

Permalink
Merge pull request #184 from hibare/fix-release
Browse files Browse the repository at this point in the history
fix(release): Duplicate artifacts
  • Loading branch information
hibare authored Dec 26, 2023
2 parents c24145a + 3d53ab7 commit 475dc39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source:
enabled: true
rlcp: true
name_template: "{{ .ProjectName }}-{{ .Version }}"

before:
Expand Down Expand Up @@ -33,7 +32,11 @@ universal_binaries:
nfpms:
- id: nfpms
package_name: "gos3backup"
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: >-
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
{{- if not (eq .Amd64 "v1")}}{{ .Amd64 }}{{ end -}}
{{- .ConventionalExtension -}}
vendor: Hibare.
homepage: https://github.com/hibare/GoS3Backup
maintainer: Hibare <[email protected]>.
Expand Down
14 changes: 13 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,17 @@
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"cSpell.words": [
"bindir",
"goarch",
"goarm",
"hibare",
"incpatch",
"ldflags",
"nfpms",
"preremove",
"tolower",
"trimsuffix"
]
}

0 comments on commit 475dc39

Please sign in to comment.