From 414acf2b40fb934ed5ddc246355a0885b848c1e1 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Sat, 13 Jul 2024 16:02:11 -0500 Subject: [PATCH] ci: Add release secrets --- .github/workflows/build.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: |