mirror of
https://github.com/nyakang/nyaterm.git
synced 2026-09-21 16:01:29 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user