forked from invopop/gobl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
82 lines (76 loc) · 1.38 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: 2
before:
hooks:
- go mod download
builds:
- id: gobl.cli
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/gobl
binary: gobl
- id: gobl.wasm
goos:
- js
main: ./wasm
binary: gobl.wasm
goarch:
- "wasm"
archives:
- id: cli
builds:
- gobl.cli
format: tar.gz
name_template: "gobl.{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
- id: wasm
builds:
- gobl.wasm
format: binary
name_template: "gobl.{{ .Version }}"
files:
- none*
wrap_in_directory: false
- id: wasm-gz
builds:
- gobl.wasm
format: gz
name_template: "gobl.{{ .Version }}.wasm"
files:
- none*
wrap_in_directory: false
blobs:
# Upload wasm to Google Cloud Storage
#- provider: gs
# bucket: cdn.gobl.org
# directory: "cli"
# ids:
# - wasm
# - wasm-gz
# Upload wasm to Cloudflare R2
- provider: s3
bucket: cdn-gobl-org
region: auto
endpoint: "https://1791095f8859b90cf7717568b61e76a5.eu.r2.cloudflarestorage.com"
directory: "cli"
ids:
- wasm
- wasm-gz
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: invopop
name: gobl
prerelease: auto