diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eed097..9481429 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: ci on: push: - branches: [master] + branches: [main] pull_request: permissions: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e137c58..36b5981 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,3 +37,4 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CASK_DEPLOY_KEY: ${{ secrets.CASK_DEPLOY_KEY }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 08848b5..44fc1dc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -33,13 +33,17 @@ changelog: release: mode: keep-existing -# Each release writes Casks/rexdiff.rb to this repo. The release workflow -# gives GITHUB_TOKEN the write access for it. +# Each release writes Casks/rexdiff.rb to this repo. main requires CI to +# pass, and GITHUB_TOKEN cannot bypass that, so the push uses a deploy key +# that the ruleset lets through. The release workflow passes it in. homebrew_casks: - repository: owner: frinfo702 name: rexdiff branch: main + git: + url: git@github.com:frinfo702/rexdiff.git + private_key: "{{ .Env.CASK_DEPLOY_KEY }}" directory: Casks homepage: https://github.com/frinfo702/rexdiff description: Review the changes of a coding agent in Rex