Skip to content

Commit 8bd87d6

Browse files
committed
fix: add archive overwrite and tags
1 parent 64dd111 commit 8bd87d6

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/choco/release.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ builds:
1515
- amd64
1616
flags:
1717
- -trimpath
18+
mod_timestamp: '{{ .CommitTimestamp }}'
19+
ldflags:
20+
- -s -w -X main.version={{ .Version }} -X main.commitSHA={{.Commit}}
21+
archives:
22+
- name_template: >-
23+
{{ .ProjectName }}_
24+
{{- title .Os }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else if eq .Arch "386" }}i386
27+
{{- else }}{{ .Arch }}{{ end }}
28+
format_overrides:
29+
- goos: windows
30+
format: zip
31+
rlcp: true
32+
1833
release:
1934
disable: true
2035

@@ -29,7 +44,7 @@ chocolateys:
2944
project_source_url: https://github.com/kha7iq/ncp
3045
docs_url: https://ncp.lmno.pk
3146
bug_tracker_url: https://github.com/kha7iq/ncp/issues
32-
release_notes: "https://github.com/kha7iq/ncp/releases/tag/v{{ .Version }}"
47+
release_notes: 'https://github.com/kha7iq/ncp/releases/tag/v{{ .Version }}'
3348
summary: Effortlessly transfer files and folders, to and from your NFS server.
3449
description: |
3550
# NCP (NFS Copy)
@@ -50,4 +65,5 @@ chocolateys:
5065
ncp --help
5166
```
5267
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
68+
tags: 'ncp network nfs3 nfs4 copy upload'
5369

0 commit comments

Comments
 (0)