Skip to content

Commit e36bd62

Browse files
authored
update homebrew tap on release (#64)
1 parent 59591dc commit e36bd62

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,29 @@ jobs:
4646
permissions:
4747
id-token: write # Required for OIDC token exchange
4848
steps:
49-
- uses: actions/checkout@v5
50-
- uses: rust-lang/crates-io-auth-action@v1
51-
id: auth
52-
- run: cargo publish
53-
env:
54-
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
49+
- uses: actions/checkout@v5
50+
- uses: rust-lang/crates-io-auth-action@v1
51+
id: auth
52+
- run: cargo publish
53+
env:
54+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
55+
56+
update-homebrew:
57+
name: update-homebrew
58+
needs:
59+
- create-release
60+
runs-on: macos-latest
61+
steps:
62+
- name: Update Homebrew formula
63+
env:
64+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
65+
run: |
66+
version="${{ needs.create-release.outputs.version }}"
67+
brew tap lkurcak/tap
68+
brew bump-formula-pr \
69+
--no-browse \
70+
--version="$version" \
71+
lkurcak/tap/tend
5572
5673
build-release:
5774
name: build-release

0 commit comments

Comments
 (0)