-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.44 KB
/
Copy pathrelease.yml
File metadata and controls
51 lines (42 loc) · 1.44 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
name: release
# Tag a version (e.g. `git tag v0.1.0 && git push --tags`) to build
# cross-platform binaries and attach them to a GitHub Release.
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build cross-platform binaries
run: make release
- name: Publish release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
body: |
## Install
**Recommended (no warnings):**
```bash
go install github.com/ashishxcode/commit-chronicle/cmd/commit-chronicle@latest
```
**Pre-built binary:** download for your OS/arch below, then:
```bash
chmod +x commit-chronicle-*
# macOS only — clear the Gatekeeper quarantine flag:
xattr -d com.apple.quarantine commit-chronicle-* 2>/dev/null || true
mv commit-chronicle-* /usr/local/bin/commit-chronicle
```
> macOS can't verify these binaries (they aren't Apple-notarized), so a
> downloaded copy is quarantined and reported as "malware" / "cannot be
> opened" until you run the `xattr` command above (or right-click → Open).