diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml new file mode 100644 index 00000000..766956ef --- /dev/null +++ b/.github/workflows/homebrew.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bee224a5..aa5d0f28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}