From e9c0137b4413c349715fdb5397f5160115e77ef1 Mon Sep 17 00:00:00 2001 From: James Kim Date: Wed, 18 Sep 2024 13:46:39 -0400 Subject: [PATCH] ci: setup homebrew releases --- .github/workflows/release.yml | 5 ++++- .goreleaser.yaml | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7498a83..c61bb373 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,12 +4,14 @@ on: push: tags: - "*" + workflow_dispatch: permissions: contents: write jobs: goreleaser: + if: github.repository == 'ethereum-optimism/supersim' runs-on: ubuntu-latest steps: - name: Checkout @@ -27,4 +29,5 @@ jobs: version: "~> v2" args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAP_REPO_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_REPO_OPTIBOT_PAT }} \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fbcca86d..a299f642 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,3 +29,13 @@ archives: format: zip changelog: disable: true + +brews: + - name: supersim + directory: Formula + homepage: "https://github.com/ethereum-optimism/supersim" + description: "Supersim is a local dev environment for the Superchain" + repository: + owner: ethereum-optimism + name: homebrew-tap + token: "{{ .Env.TAP_REPO_GITHUB_TOKEN }}" \ No newline at end of file