Skip to content

Commit

Permalink
build: adds automation for brew releases (grafana#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
petethepig authored Aug 31, 2023
1 parent 9f2a678 commit c564835
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,22 @@ jobs:
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
# distribution:
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

# make generate-formulas expects PYROSCOPE_TAG to be set
- name: Set PYROSCOPE_TAG
run: echo "PYROSCOPE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Get github app token (valid for an hour)
id: brew-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
repository: pyroscope-io/homebrew-brew
- name: Deploy to fire-dev-001
run: |
git config --global url."https://x-access-token:$(echo "${GITHUB_TOKEN}" | xargs)@github.com/pyroscope-io/homebrew-brew".insteadOf "https://github.com/pyroscope-io/homebrew-brew"
git clone https://github.com/pyroscope-io/homebrew-brew
cd homebrew-brew
make generate-formulas && git add Formula && git commit -m "chore: update formulas to ${}" && git push origin main
env:
GITHUB_TOKEN: ${{ steps.brew-token.outputs.token }}

0 comments on commit c564835

Please sign in to comment.