mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
refactor(release): simplify pre-release channel to nightly only
Drops `alpha` / `beta` / `rc` as accepted pre-release labels in bin/dev/release.sh. `nightly` is now the only pre-release descriptor, in preparation for automated nightly tags. Renames the Homebrew tap formula from `fabro-beta` to `fabro-nightly`: - installer/fabro-beta.rb.template -> installer/fabro-nightly.rb.template (class renamed FabroBeta -> FabroNightly, desc updated). - `update-homebrew-beta` job in release.yml is now `update-homebrew-nightly` with matching file paths and commit message. Breaking for existing `brew install fabro-sh/tap/fabro-beta` users: the old formula file stays in the tap for now (removed in a follow-up once fabro-nightly is populated) and stops receiving updates. Users should switch to `brew install fabro-sh/tap/fabro-nightly` once the new formula is published by the next pre-release tag. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
18a551f076
commit
2d8d72717d
3 changed files with 12 additions and 12 deletions
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
|
|
@ -146,8 +146,8 @@ jobs:
|
|||
git add Formula/fabro.rb
|
||||
git diff --cached --quiet || (git commit -m "Update fabro to ${TAG_NAME}" && git push)
|
||||
|
||||
update-homebrew-beta:
|
||||
name: Update Homebrew Beta Formula
|
||||
update-homebrew-nightly:
|
||||
name: Update Homebrew Nightly Formula
|
||||
needs: release
|
||||
if: ${{ contains(github.ref_name, '-') }}
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -165,7 +165,7 @@ jobs:
|
|||
pattern: artifacts-fabro-*
|
||||
merge-multiple: true
|
||||
|
||||
- name: Generate and push beta formula
|
||||
- name: Generate and push nightly formula
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
||||
TAG_NAME: ${{ github.ref_name }}
|
||||
|
|
@ -181,12 +181,12 @@ jobs:
|
|||
-e "s/{{SHA_AARCH64_DARWIN}}/$SHA_AARCH64_DARWIN/g" \
|
||||
-e "s/{{SHA_X86_64_LINUX}}/$SHA_X86_64_LINUX/g" \
|
||||
-e "s/{{SHA_AARCH64_LINUX}}/$SHA_AARCH64_LINUX/g" \
|
||||
installer/fabro-beta.rb.template > fabro-beta.rb
|
||||
installer/fabro-nightly.rb.template > fabro-nightly.rb
|
||||
|
||||
git clone https://x-access-token:${GH_TOKEN}@github.com/fabro-sh/homebrew-tap.git tap
|
||||
cp fabro-beta.rb tap/Formula/fabro-beta.rb
|
||||
cp fabro-nightly.rb tap/Formula/fabro-nightly.rb
|
||||
cd tap
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add Formula/fabro-beta.rb
|
||||
git diff --cached --quiet || (git commit -m "Update fabro-beta to ${TAG_NAME}" && git push)
|
||||
git add Formula/fabro-nightly.rb
|
||||
git diff --cached --quiet || (git commit -m "Update fabro-nightly to ${TAG_NAME}" && git push)
|
||||
|
|
|
|||
|
|
@ -34,9 +34,9 @@ next_base_version() {
|
|||
validate_prerelease_label() {
|
||||
local label="$1"
|
||||
case "$label" in
|
||||
alpha|beta|rc) ;;
|
||||
nightly) ;;
|
||||
*)
|
||||
die "invalid pre-release label: $label (expected one of: alpha, beta, rc)"
|
||||
die "invalid pre-release label: $label (expected: nightly)"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
@ -73,7 +73,7 @@ parse_args() {
|
|||
;;
|
||||
--help|-h)
|
||||
cat <<'EOF'
|
||||
Usage: bin/dev/release.sh [alpha|beta|rc] [--dry-run] [--skip-tests]
|
||||
Usage: bin/dev/release.sh [nightly] [--dry-run] [--skip-tests]
|
||||
|
||||
Create the next stable release from main, or compute a prerelease tag.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
class FabroBeta < Formula
|
||||
desc "Unified CLI for the Fabro AI framework (pre-release channel)"
|
||||
class FabroNightly < Formula
|
||||
desc "Unified CLI for the Fabro AI framework (nightly channel)"
|
||||
homepage "https://fabro.sh"
|
||||
license "MIT"
|
||||
version "{{VERSION}}"
|
||||
Loading…
Add table
Reference in a new issue