From 765884ba7884d565e6daf3a942c3247e805314f1 Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Tue, 27 Jun 2023 23:43:26 -0500 Subject: [PATCH 1/2] move homebrew version bump to run when fully released --- .github/workflows/homebrew.yml | 20 ++++++++++++++++++++ .github/workflows/release.yml | 15 --------------- 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/homebrew.yml 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 }} From be6e78a35013ccca2620584a274d2a9cca7e47ab Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Thu, 29 Jun 2023 08:58:02 -0500 Subject: [PATCH 2/2] update download url to comply with future changes --- .github/workflows/homebrew.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 766956ef..fee97d74 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -16,5 +16,6 @@ jobs: 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 }}