diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dc0a6c2..6edfa5a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -63,10 +63,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: cli-of-life,homebrew-tap - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: args: ${{ steps.vars.outputs.args }} + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + FURY_TOKEN: ${{ secrets.FURY_TOKEN }} + AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }} - name: Push beta image if: github.ref_name == 'main' run: |