Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,38 @@ jobs:
curl -sSL https://runcrate.ai/install.sh | sh
```

**Homebrew (macOS / Linux):**
```bash
brew install aeonmindai/tap/runcrate
```

**Windows (PowerShell):**
```powershell
irm https://runcrate.ai/install.ps1 | iex
```

**Already installed?**
```bash
runcrate update
runcrate update # curl / PowerShell installs
brew upgrade runcrate # Homebrew installs
```

# Tell aeonmindai/homebrew-tap to regenerate Formula/runcrate.rb from this release's
# checksums. Needs a HOMEBREW_TAP_TOKEN secret that can dispatch to that repo; without
# it the step is skipped and the tap's six-hourly sync picks the release up instead.
- name: Update Homebrew tap
# The release is already published; a bad token or API hiccup must not turn it red.
continue-on-error: true
env:
TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
TAG: ${{ steps.version.outputs.version }}
run: |
if [ -z "$TAP_TOKEN" ]; then
echo "HOMEBREW_TAP_TOKEN not set; the tap's scheduled sync will pick up ${TAG}."
exit 0
fi
curl -fsS --retry 3 -X POST \
-H "Authorization: Bearer ${TAP_TOKEN}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/aeonmindai/homebrew-tap/dispatches \
-d "{\"event_type\":\"cli-release\",\"client_payload\":{\"tag\":\"${TAG}\"}}"
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ manage workspaces, storage, templates, and billing from your terminal.
curl -sSL https://runcrate.ai/install.sh | sh
```

**Homebrew (macOS / Linux):**

```bash
brew install aeonmindai/tap/runcrate
```

**Windows (PowerShell):**

```powershell
Expand Down Expand Up @@ -55,7 +61,10 @@ make build-all # cross-compile all platforms into ./bin
Releases are tag-driven. Pushing a `vX.Y.Z` tag runs `.github/workflows/release.yml`,
which tests, cross-compiles the five targets, generates `checksums.txt`, and
publishes a GitHub Release. The public installer scripts and `runcrate update`
read these releases, so no separate publish step is needed.
read these releases, so no separate publish step is needed. The same workflow asks
[aeonmindai/homebrew-tap](https://github.com/aeonmindai/homebrew-tap) to regenerate its
formula from the new checksums (needs the `HOMEBREW_TAP_TOKEN` secret; without it the
tap's own six-hourly sync picks the release up).

```bash
git tag v0.1.0
Expand Down
Loading