-
-
Notifications
You must be signed in to change notification settings - Fork 328
29 lines (27 loc) · 821 Bytes
/
homebrewpublish.yml
File metadata and controls
29 lines (27 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Publish to Homebrew
on:
workflow_run:
workflows: ["Upload Python Package"]
types:
- completed
jobs:
deploy:
runs-on: macos-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: uv pip install -U commitizen
- name: Set Project version env variable
run: |
echo "project_version=$(cz version --project)" >> $GITHUB_ENV
- name: Update Homebrew formula
uses: dawidd6/action-homebrew-bump-formula@v7
with:
token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
formula: commitizen
tag: v${{ env.project_version }}
force: true