Merge pull request #359 from openziti/brew-update

move homebrew version bump to run when fully released
This commit is contained in:
Michael Quigley 2023-06-29 14:59:09 -04:00 committed by GitHub
commit 7f320676f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 15 deletions

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

@ -0,0 +1,21 @@
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
download-url: https://github.com/openziti/zrok/archive/${{ steps.extract-version.outputs.tag-name }}.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.BREW_COMMITTER_TOKEN }}

View File

@ -252,18 +252,3 @@ jobs:
args: release --config .goreleaser-release.yml
env:
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 }}