Skip to content

Commit 875cdc5

Browse files
committed
ci: publish to homebrew
1 parent 223782b commit 875cdc5

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88
jobs:
99
goreleaser:
1010
runs-on: ubuntu-latest
11-
env:
12-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
1311
steps:
1412
- name: Checkout
1513
uses: actions/checkout@v2
1614
with:
1715
fetch-depth: 0
16+
- name: Set env
17+
run: echo "REF_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1818
- name: Set up Go
1919
uses: actions/setup-go@v2
2020
with:
@@ -28,5 +28,12 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
- name: force sync pkg.go.dev
31-
run: |
32-
curl https://sum.golang.org/lookup/github.com/oom-ai/oomstore@$RELEASE_VERSION
31+
run: curl https://sum.golang.org/lookup/github.com/oom-ai/oomstore@${{ env.REF_TAG }}
32+
- name: Bump Homebrew formula
33+
uses: mislav/bump-homebrew-formula-action@v1
34+
with:
35+
formula-name: oomcli
36+
homebrew-tap: oom-ai/homebrew-oom-ai
37+
download-url: https://github.com/oom-ai/oomstore/releases/download/${{ env.REF_TAG }}/oomstore-${{ env.REF_TAG }}-amd64-darwin.tar.gz
38+
env:
39+
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}

0 commit comments

Comments
 (0)