This repository was archived by the owner on Aug 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
86 lines (73 loc) · 2.18 KB
/
Copy path.goreleaser.yaml
File metadata and controls
86 lines (73 loc) · 2.18 KB
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
83
84
85
86
version: 2
project_name: jot
env:
# Use Go 1.21 (from go.mod)
- GO111MODULE=on
before:
hooks:
- go mod download
- go mod tidy
builds:
- id: linux-amd64
main: ./main.go
binary: jot
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w
- -X github.com/zenobi-us/jot/cmd.Version={{.Version}}
- -X github.com/zenobi-us/jot/cmd.Commit={{.Commit}}
- -X github.com/zenobi-us/jot/cmd.Date={{.Date}}
archives:
- id: default
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- README.md
- LICENSE
changelog:
use: github-native
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch
release:
# Publish to GitHub Releases
github:
owner: zenobi-us
name: opennotes
prerelease: auto # Auto-detect prerelease from tag (rc, alpha, beta, etc.)
mode: keep-existing # Don't overwrite existing
draft: false
footer: |
## SHA256 Checksums
```
{{ .Checksums }}
```
**Installation:**
- **macOS (ARM64)**: `curl -sSL https://github.com/zenobi-us/jot/releases/download/{{ .Tag }}/jot_{{ .Version }}_Darwin_arm64.tar.gz | tar xz && sudo mv jot /usr/local/bin/`
- **macOS (Intel)**: `curl -sSL https://github.com/zenobi-us/jot/releases/download/{{ .Tag }}/jot_{{ .Version }}_Darwin_x86_64.tar.gz | tar xz && sudo mv jot /usr/local/bin/`
- **Linux (x86_64)**: `curl -sSL https://github.com/zenobi-us/jot/releases/download/{{ .Tag }}/jot_{{ .Version }}_Linux_x86_64.tar.gz | tar xz && sudo mv jot /usr/local/bin/`
- **Linux (ARM64)**: `curl -sSL https://github.com/zenobi-us/jot/releases/download/{{ .Tag }}/jot_{{ .Version }}_Linux_arm64.tar.gz | tar xz && sudo mv jot /usr/local/bin/`
- **Windows**: Download the `.zip` file from the release page
checksum:
name_template: "checksums.txt"
algorithm: sha256