Skip to content

Commit 555e483

Browse files
ashu17706claude
andcommitted
chore: final cleanup and prepare for v0.1.0 release
- Delete 12 intermediary dev-session documents (completion summaries, phase status, implementation plans) - Remove old install.sh and phase2-remove-gui.sh scripts (replaced by newer versions) - Update GitHub Actions workflow to publish on push to main and pull requests - Add conditional logic to use main branch tarball URL for non-release builds - Add three new README sections: "Why This CLI?", "Why not just the WARP app?", "Do I miss anything?" These additions improve value proposition and clarify why developers should use this CLI over the standard GUI. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent e773d49 commit 555e483

14 files changed

Lines changed: 109 additions & 4385 deletions

.github/workflows/publish-homebrew.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
11
name: Publish to Homebrew
22

33
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
48
release:
59
types: [published]
610

711
jobs:
812
publish-homebrew:
913
runs-on: ubuntu-latest
14+
if: |
15+
github.event_name != 'pull_request'
1016
steps:
17+
- name: Set version info
18+
run: |
19+
if [ "${{ github.event_name }}" = "release" ]; then
20+
VERSION="${{ github.event.release.tag_name }}"
21+
TARBALL_URL="https://github.com/zero8dotdev/warp-cli/archive/refs/tags/${VERSION}.tar.gz"
22+
else
23+
VERSION="main"
24+
TARBALL_URL="https://github.com/zero8dotdev/warp-cli/archive/refs/heads/main.tar.gz"
25+
fi
26+
echo "VERSION=$VERSION" >> $GITHUB_ENV
27+
echo "TARBALL_URL=$TARBALL_URL" >> $GITHUB_ENV
28+
1129
- name: Checkout warp-cli
1230
uses: actions/checkout@v4
1331
with:
1432
repository: zero8dotdev/warp-cli
15-
ref: ${{ github.event.release.tag_name }}
33+
ref: ${{ env.VERSION == 'main' && 'main' || github.event.release.tag_name }}
1634

1735
- name: Download release tarball
1836
run: |
19-
RELEASE_URL="https://github.com/zero8dotdev/warp-cli/archive/refs/tags/${{ github.event.release.tag_name }}.tar.gz"
20-
curl -L "$RELEASE_URL" -o warp.tar.gz
37+
curl -L "${{ env.TARBALL_URL }}" -o warp.tar.gz
2138
SHA256=$(shasum -a 256 warp.tar.gz | cut -d' ' -f1)
2239
echo "SHA256=$SHA256" >> $GITHUB_ENV
2340
@@ -34,7 +51,7 @@ jobs:
3451
class Warp < Formula
3552
desc "Beautiful CLI for Cloudflare WARP - Control your VPN from the terminal"
3653
homepage "https://github.com/zero8dotdev/warp-cli"
37-
url "https://github.com/zero8dotdev/warp-cli/archive/refs/tags/${{ github.event.release.tag_name }}.tar.gz"
54+
url "${{ env.TARBALL_URL }}"
3855
sha256 "${{ env.SHA256 }}"
3956
license "MIT"
4057
head "https://github.com/zero8dotdev/warp-cli.git", branch: "main"
@@ -68,10 +85,11 @@ jobs:
6885
git config user.name "GitHub Actions"
6986
git config user.email "actions@github.com"
7087
git add Formula/warp.rb
71-
git commit -m "chore: bump warp to ${{ github.event.release.tag_name }}"
88+
git commit -m "chore: bump warp to ${{ env.VERSION }}"
7289
git push
7390
7491
- name: Comment on release
92+
if: github.event_name == 'release'
7593
uses: actions/github-script@v7
7694
with:
7795
script: |

0 commit comments

Comments
 (0)