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