move homebrew version bump to run when fully released

This commit is contained in:
Cam Otts 2023-06-27 23:43:26 -05:00
parent 309b146fd8
commit 765884ba78
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD
2 changed files with 20 additions and 15 deletions

20
.github/workflows/homebrew.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Homebrew Bump
on:
release:
types: [released]
jobs:
update-brew:
runs-on: ubuntu-latest
steps:
- name: Extract Version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: "!contains(github.ref, '-')"
with:
formula-name: zrok
env:
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}

View File

@ -252,18 +252,3 @@ jobs:
args: release --config .goreleaser-release.yml args: release --config .goreleaser-release.yml
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-brew:
needs: [publish-release]
runs-on: ubuntu-latest
steps:
- name: Extract Version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: "!contains(github.ref, '-')"
with:
formula-name: zrok
env:
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}