diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8c91c1c..ac627231 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,15 +65,22 @@ jobs: args+=' --snapshot' fi echo "args=$args" >> $GITHUB_OUTPUT + - name: Generate Token + id: app-token + if: startsWith(github.ref, 'refs/tags/') + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.BOT_APP_ID }} + private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} + repositories: ascii-movie,homebrew-tap - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest args: ${{ steps.vars.outputs.args }} env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} FURY_TOKEN: ${{ secrets.FURY_TOKEN }} - HOMEBREW_TOKEN: ${{ secrets.HOMEBREW_TOKEN }} AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} - name: Push beta image if: github.ref_name == 'main' diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d3cbd17e..3ff1f27f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -55,7 +55,6 @@ brews: repository: owner: gabe565 name: homebrew-tap - token: '{{ .Env.HOMEBREW_TOKEN }}' folder: Formula install: | bin.install "{{ .ProjectName }}"