Skip to content

Commit f7d1dd3

Browse files
committed
update goreleaser & ghaction
1 parent f543287 commit f7d1dd3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
with:
2222
go-version: '>=1.19.5'
2323
cache: true
24-
- run: sudo apt install upx -y
2524
- uses: goreleaser/goreleaser-action@v4
2625
with:
2726
distribution: goreleaser

.goreleaser.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@ builds:
1818
- arm64
1919
hooks:
2020
post:
21-
- upx "{{ .Path }}"
21+
# - upx "{{ .Path }}"
2222

2323
archives:
2424
- id: "giserver"
2525
builds:
2626
- "giserver"
2727
format: binary
28-
replacements:
29-
darwin: Darwin
30-
linux: Linux
31-
windows: Windows
32-
386: i386
33-
amd64: x86_64
28+
name_template: >-
29+
"giserver"_
30+
{{- title .Os }}_
31+
{{- if eq .Arch "amd64" }}x86_64
32+
{{- else if eq .Arch "386" }}i386
33+
{{- else }}{{ .Arch }}{{ end }}
34+
3435
checksum:
3536
name_template: 'checksums.txt'
3637
snapshot:

0 commit comments

Comments
 (0)