Skip to content

ci: push homebrew formula to a PR branch (#354) #266

ci: push homebrew formula to a PR branch (#354)

ci: push homebrew formula to a PR branch (#354) #266

Workflow file for this run

on:
push:
tags:
- "v*"
name: Release
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1
- uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
id: homebrew-tap-token
with:
app-id: ${{ secrets.BLOCK_HOMEBREW_TAP_APP_ID }}
private-key: ${{ secrets.BLOCK_HOMEBREW_TAP_PRIVATE_KEY }}
owner: block
repositories: homebrew-tap
- run: goreleaser release --clean --fail-fast
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.homebrew-tap-token.outputs.token }}