ci: trigger Homebrew tap update after NyaTerm release (#93)

- Introduced a new job in the GitHub Actions workflow to update the Homebrew tap upon version tagging.
- Configured the job to trigger only for version tags without hyphens, ensuring proper version management.
- Utilized GitHub CLI to run the update workflow for the Homebrew tap, enhancing the release process.
This commit is contained in:
Kang
2026-06-20 21:02:10 +08:00
parent 72cc25092e
commit 58194370c2
+17
View File
@@ -527,6 +527,23 @@ jobs:
console.log(`Uploaded latest.json with ${Object.keys(platforms).length} platform key(s).`);
update-homebrew-tap:
name: Update Homebrew tap
needs: publish-updater
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, '-')
steps:
- name: Trigger Homebrew tap update
env:
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
VERSION: ${{ github.ref_name }}
run: |
gh workflow run update-cask.yml \
--repo nyakang/homebrew-nyaterm \
-f version="${VERSION#v}"
cleanup-sigs:
name: Remove signature assets
needs: publish-updater