Skip to content
Merged
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
38 changes: 37 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
cancel-in-progress: false

permissions:
contents: read
contents: write

env:
BUN_VERSION: "1.3.1"
Expand Down Expand Up @@ -299,3 +299,39 @@ jobs:
git add Formula/
git commit -m "Update saguaro formula to ${version}"
git push --force-with-lease origin staged

# ── Create GitHub Release ────────────────────────────────────────────
github-release:
name: Create GitHub Release
needs: [detect, publish-npm, build]
if: needs.detect.outputs.dry_run != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
pattern: binary-*
merge-multiple: true

- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
set -euo pipefail
version="${{ needs.detect.outputs.version }}"
tag="v${version}"

if gh release view "$tag" >/dev/null 2>&1; then
echo "Release $tag already exists, skipping."
exit 0
fi

git tag "$tag"
git push origin "$tag"

gh release create "$tag" \
saguaro-*.tar.gz \
--title "Saguaro v${version}" \
--generate-notes
Loading