Skip to content

Commit

Permalink
chore: swap release workflow to GH app (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed Apr 11, 2024
1 parent 5f1a408 commit 5bcb426
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:

push:
runs-on: ubuntu-latest
environment: release
needs: validate
permissions:
contents: write
Expand All @@ -103,6 +104,14 @@ jobs:
name: build-artifacts
path: build/

- name: Get Brew tap repo token
id: brew-tap-token
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3 # v3.0.0
with:
application_id: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_ID }}
application_private_key: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_SECRET }}
organization: defenseunicorns

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand All @@ -111,4 +120,4 @@ jobs:
args: release --rm-dist --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.TAP_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.brew-tap-token.outputs.token }}

0 comments on commit 5bcb426

Please sign in to comment.