Skip to content

Commit 0ae4388

Browse files
authored
chore: homebrew package (#35)
1 parent e37ea36 commit 0ae4388

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
go-version-file: go.mod
2020
- uses: goreleaser/goreleaser-action@v7
2121
with:
22+
distribution: goreleaser-pro
2223
args: release --clean --parallelism=8
2324
env:
2425
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
27+
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

.goreleaser.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,22 @@ archives:
3535
- goos: windows
3636
formats: [zip]
3737

38+
homebrew_casks:
39+
- name: loops
40+
repository:
41+
owner: loops-so
42+
name: homebrew-loops
43+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
44+
homepage: https://loops.so
45+
description: Official CLI for Loops
46+
binaries: [loops]
47+
# TODO: remove this after we're signing the binary
48+
hooks:
49+
post:
50+
install: |
51+
if OS.mac?
52+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/loops"]
53+
end
54+
3855
changelog:
3956
use: github-native

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ The official Loops CLI
77
88
## Installation
99

10-
Installation script,
10+
### Homebrew
11+
12+
```
13+
brew tap loops-so/loops
14+
brew install --cask loops
15+
```
16+
17+
### Script
1118

1219
```
1320
curl -fsSL --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/loops-so/cli/main/install.sh | bash

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ tasks:
7373

7474
release:check:
7575
cmds:
76-
- goreleaser check
76+
- goreleaser check

0 commit comments

Comments
 (0)