|
1 | | -# This is an example .goreleaser.yml file with some sensible defaults. |
2 | | -# Make sure to check the documentation at https://goreleaser.com |
| 1 | +version: 2 |
| 2 | + |
3 | 3 | before: |
4 | 4 | hooks: |
5 | 5 | # You may remove this if you don't use go modules. |
6 | 6 | - go mod tidy |
7 | 7 | # you may remove this if you don't need go generate |
8 | 8 | - go generate ./... |
| 9 | + |
| 10 | +archives: |
| 11 | + - ids: |
| 12 | + - classeviva |
| 13 | + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" |
| 14 | + formats: ["tar.gz"] |
| 15 | + files: |
| 16 | + - README.md |
| 17 | + - LICENSE* |
| 18 | + |
9 | 19 | builds: |
10 | | - - binary: classeviva |
| 20 | + - binary: classeviva |
11 | 21 | id: classeviva |
12 | 22 | ldflags: |
13 | 23 | - -s -w -X github.com/zmoog/classeviva/commands.version={{.Version}} -X github.com/zmoog/classeviva/commands.commit={{.Commit}} -X github.com/zmoog/classeviva/commands.date={{.Date}} -X github.com/zmoog/classeviva/commands.builtBy=goreleaser |
14 | 24 | env: |
15 | 25 | - CGO_ENABLED=0 |
16 | 26 | goos: |
17 | 27 | - linux |
18 | | - # - windows |
19 | 28 | - darwin |
| 29 | + goarch: |
| 30 | + - amd64 |
| 31 | + - arm64 |
20 | 32 | main: ./entrypoints/cli |
21 | | - |
22 | | - # |
23 | | - # Uncomment the following lines if you want to use macOS notarization |
24 | | - # --------------------------------------------------------------- |
25 | | - # |
26 | | - # I have commented out the following lines because I don't have a |
27 | | - # paid Apple Developer account anymore. |
28 | | - # |
29 | | - # Since I'm probably the only one who will ever use this, I'm not |
30 | | - # goint to spend $99/year until I have a good reason to do so. |
31 | | - # |
32 | | - |
33 | | - # - binary: classeviva |
34 | | - # id: classeviva-macos-amd64 |
35 | | - # ldflags: |
36 | | - # - -s -w -X github.com/zmoog/classeviva/commands.version={{.Version}} -X github.com/zmoog/classeviva/commands.commit={{.Commit}} -X github.com/zmoog/classeviva/commands.date={{.Date}} -X github.com/zmoog/classeviva/commands.builtBy=goreleaser |
37 | | - # env: |
38 | | - # - CGO_ENABLED=0 |
39 | | - # goos: |
40 | | - # - darwin |
41 | | - # goarch: |
42 | | - # - amd64 |
43 | | - # main: ./entrypoints/cli |
44 | | - # hooks: |
45 | | - # post: |
46 | | - # - cmd: gon gon.config.amd64.hcl |
47 | | - # output: true |
48 | | - |
49 | | - # - binary: classeviva |
50 | | - # id: classeviva-macos-arm64 |
51 | | - # ldflags: |
52 | | - # - -s -w -X github.com/zmoog/classeviva/commands.version={{.Version}} -X github.com/zmoog/classeviva/commands.commit={{.Commit}} -X github.com/zmoog/classeviva/commands.date={{.Date}} -X github.com/zmoog/classeviva/commands.builtBy=goreleaser |
53 | | - # env: |
54 | | - # - CGO_ENABLED=0 |
55 | | - # goos: |
56 | | - # - darwin |
57 | | - # goarch: |
58 | | - # - arm64 |
59 | | - # main: ./entrypoints/cli |
60 | | - # hooks: |
61 | | - # post: |
62 | | - # - cmd: gon gon.config.arm64.hcl |
63 | | - # output: true |
64 | | - |
65 | | -archives: |
66 | | - - replacements: |
67 | | - darwin: Darwin |
68 | | - linux: Linux |
69 | | - # windows: Windows |
70 | | - #386: i386 |
71 | | - amd64: x86_64 |
| 33 | + |
| 34 | +release: |
| 35 | + name_template: "{{.ProjectName}} v{{.Version}}" |
| 36 | + draft: false |
| 37 | + prerelease: auto |
| 38 | + |
| 39 | +homebrew_casks: |
| 40 | + - name: classeviva |
| 41 | + repository: |
| 42 | + owner: zmoog |
| 43 | + name: homebrew-classeviva |
| 44 | + branch: main |
| 45 | + binaries: |
| 46 | + - classeviva |
| 47 | + hooks: |
| 48 | + post: |
| 49 | + install: | |
| 50 | + if OS.mac? |
| 51 | + system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/classeviva"] |
| 52 | + end |
72 | 53 | checksum: |
73 | | - name_template: 'checksums.txt' |
| 54 | + name_template: "checksums.txt" |
| 55 | + |
74 | 56 | snapshot: |
75 | | - name_template: "{{ incpatch .Version }}-next" |
| 57 | + version_template: "{{ incpatch .Version }}-next" |
| 58 | + |
76 | 59 | changelog: |
77 | 60 | sort: asc |
78 | 61 | filters: |
79 | 62 | exclude: |
80 | | - - '^docs:' |
81 | | - - '^test:' |
| 63 | + - "^docs:" |
| 64 | + - "^test:" |
0 commit comments