Skip to content

Commit 8d4c300

Browse files
feat: add automatic Homebrew and Scoop package manager updates (#7)
Co-authored-by: Claude Haiku 4.5 <[email protected]>
1 parent a78e438 commit 8d4c300

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/cd.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
release:
66
types: [published]
77
jobs:
8-
publish-pypi:
8+
release:
99
runs-on: ubuntu-latest
10-
name: Publish on PyPI
10+
name: Publish Release
1111
permissions:
1212
id-token: write # IMPORTANT: Mandatory for Trusted Publishing (gh-action-pypi-publish)
1313
contents: write # IMPORTANT: Mandatory for GitHub Release
@@ -40,3 +40,17 @@ jobs:
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
run: gh release upload ${{ github.ref_name }} ./dist/* --clobber
43+
- name: Trigger Homebrew Formula Update
44+
uses: peter-evans/repository-dispatch@v3
45+
with:
46+
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
47+
repository: python-ankara-toplulugu/homebrew-tap
48+
event-type: update-formula
49+
client-payload: '{"formula": "${{ github.event.repository.name }}", "version": "${{ github.event.release.tag_name }}"}'
50+
- name: Trigger Scoop Manifest Update
51+
uses: peter-evans/repository-dispatch@v3
52+
with:
53+
token: ${{ secrets.SCOOP_BUCKET_TOKEN }}
54+
repository: python-ankara-toplulugu/scoop-bucket
55+
event-type: update-manifest
56+
client-payload: '{"package": "${{ github.event.repository.name }}", "version": "${{ github.event.release.tag_name }}"}'

0 commit comments

Comments
 (0)