Skip to content

Commit

Permalink
ci: Add release secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Jul 13, 2024
1 parent 4cf34b8 commit 414acf2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 414acf2

Please sign in to comment.