Skip to content

Commit 160a3fb

Browse files
ashu17706claude
andcommitted
refactor: migrate to homebrew-tools tap for multi-app support
- Update workflow to publish to zero8dotdev/homebrew-tools instead of homebrew-warp - Update installation instructions in README and documentation - Use generic 'tools' tap name to support multiple CLI applications Users now install with: brew tap zero8dotdev/tools Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 7b09980 commit 160a3fb

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

.github/workflows/publish-homebrew.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
SHA256=$(shasum -a 256 warp.tar.gz | cut -d' ' -f1)
3939
echo "SHA256=$SHA256" >> $GITHUB_ENV
4040
41-
- name: Checkout homebrew-warp
41+
- name: Checkout homebrew-tools
4242
uses: actions/checkout@v4
4343
with:
44-
repository: zero8dotdev/homebrew-warp
44+
repository: zero8dotdev/homebrew-tools
4545
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
46-
path: homebrew-warp
46+
path: homebrew-tools
4747

4848
- name: Update formula
4949
run: |
50-
cat > homebrew-warp/Formula/warp.rb << 'EOF'
50+
cat > homebrew-tools/Formula/warp.rb << 'EOF'
5151
class Warp < Formula
5252
desc "Beautiful CLI for Cloudflare WARP - Control your VPN from the terminal"
5353
homepage "https://github.com/zero8dotdev/warp-cli"
@@ -80,7 +80,7 @@ jobs:
8080
EOF
8181
8282
- name: Commit and push
83-
working-directory: homebrew-warp
83+
working-directory: homebrew-tools
8484
run: |
8585
git config user.name "GitHub Actions"
8686
git config user.email "actions@github.com"
@@ -90,9 +90,9 @@ jobs:
9090
9191
- name: Verify formula updated
9292
run: |
93-
if [ -f "homebrew-warp/Formula/warp.rb" ]; then
94-
echo "✅ Formula successfully updated in homebrew-warp repository"
95-
grep -A2 "url " homebrew-warp/Formula/warp.rb | head -3
93+
if [ -f "homebrew-tools/Formula/warp.rb" ]; then
94+
echo "✅ Formula successfully updated in homebrew-tools tap"
95+
grep -A2 "url " homebrew-tools/Formula/warp.rb | head -3
9696
else
9797
echo "❌ Formula file not found"
9898
exit 1

HOMEBREW_SETUP.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ When you create a GitHub release with a version tag (e.g., `v1.0.0`), a GitHub A
99
1. Downloads the release tarball
1010
2. Calculates the SHA256 hash
1111
3. Updates the Homebrew formula
12-
4. Commits to the `homebrew-warp` repository
12+
4. Commits to the `homebrew-tools` repository
1313
5. Users can then install with `brew install warp`
1414

1515
## Setup Steps
1616

17-
### Step 1: Create `homebrew-warp` Repository
17+
### Step 1: Create `homebrew-tools` Repository
1818

19-
Create a new GitHub repository named `homebrew-warp`:
19+
Create a new GitHub repository named `homebrew-tools`:
2020

2121
```bash
22-
github.com/zero8dotdev/homebrew-warp
22+
github.com/zero8dotdev/homebrew-tools
2323
```
2424

2525
### Step 2: Set Up Repository Structure
2626

27-
In `homebrew-warp`, create this structure:
27+
In `homebrew-tools`, create this structure:
2828

2929
```
30-
homebrew-warp/
30+
homebrew-tools/
3131
├── Formula/
3232
│ └── warp.rb # Homebrew formula (see warp.rb in main repo)
3333
├── README.md
@@ -42,7 +42,7 @@ homebrew-warp/
4242
- `warp.rb` - Homebrew formula template
4343
- `.github/workflows/publish-homebrew.yml` - Auto-publish workflow
4444

45-
**In homebrew-warp repository:**
45+
**In homebrew-tools repository:**
4646
- Copy the files to their respective locations
4747
- Create `README.md` with installation instructions
4848

@@ -79,16 +79,16 @@ Then on GitHub:
7979

8080
GitHub Actions will automatically:
8181
- Calculate SHA256
82-
- Update `homebrew-warp/Formula/warp.rb`
83-
- Commit and push to `homebrew-warp`
82+
- Update `homebrew-tools/Formula/warp.rb`
83+
- Commit and push to `homebrew-tools`
8484
- Comment on the release with installation instructions
8585

8686
### Step 7: Users Can Install
8787

8888
After the workflow completes, users can install with:
8989

9090
```bash
91-
brew tap zero8dotdev/warp
91+
brew tap zero8dotdev/tools
9292
brew install warp
9393
```
9494

@@ -113,7 +113,7 @@ brew upgrade warp
113113
114114
5. Updates Formula/warp.rb with new version & SHA256
115115
116-
6. Commits to homebrew-warp repo
116+
6. Commits to homebrew-tools repo
117117
118118
7. Users can install: brew tap zero8dotdev/warp && brew install warp
119119
```
@@ -144,15 +144,15 @@ The workflow will automatically handle:
144144

145145
Check `.github/workflows/publish-homebrew.yml` logs:
146146
- Is token valid?
147-
- Does homebrew-warp repo exist?
147+
- Does homebrew-tools repo exist?
148148
- Is token permissions correct?
149149

150150
### Manual Update
151151

152-
If automated workflow fails, manually update `homebrew-warp`:
152+
If automated workflow fails, manually update `homebrew-tools`:
153153

154154
```bash
155-
# In homebrew-warp repository
155+
# In homebrew-tools repository
156156
git checkout Formula/warp.rb
157157
# Update url to new version
158158
# Update sha256 with output of: shasum -a 256 warp-v0.2.0.tar.gz
@@ -184,7 +184,7 @@ brew install warp # No tap needed!
184184

185185
### Installation Command (for users)
186186
```bash
187-
brew tap zero8dotdev/warp
187+
brew tap zero8dotdev/tools
188188
brew install warp
189189
```
190190

@@ -203,8 +203,8 @@ git push origin v1.0.0
203203
## Next Steps
204204

205205
1. ✅ Files are ready in this repository
206-
2. Create `homebrew-warp` repository on GitHub
207-
3. Copy files to `homebrew-warp`
206+
2. Create `homebrew-tools` repository on GitHub
207+
3. Copy files to `homebrew-tools`
208208
4. Set up `HOMEBREW_TAP_TOKEN` secret
209209
5. Create first release
210210
6. Test installation with `brew tap zero8dotdev/warp && brew install warp`

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $ warp settings
7777
#### Option 1: Homebrew (Easiest)
7878

7979
```bash
80-
brew tap zero8dotdev/warp
80+
brew tap zero8dotdev/tools
8181
brew install warp
8282
```
8383

@@ -319,7 +319,7 @@ This project demonstrates several key concepts in systems programming and Rust:
319319

320320
### Method 1: Homebrew (Recommended)
321321
```bash
322-
brew tap zero8dotdev/warp
322+
brew tap zero8dotdev/tools
323323
brew install warp
324324
```
325325

0 commit comments

Comments
 (0)