Skip to content

Commit

Permalink
ci: Change from PAT to GitHub App
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Feb 8, 2024
1 parent 718af70 commit 13d96a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,21 @@ jobs:
args+=' --snapshot'
fi
echo "args=$args" >> $GITHUB_OUTPUT
- name: Generate Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
repositories: domain-watch,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'
Expand Down
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ brews:
repository:
owner: gabe565
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TOKEN }}'
folder: Formula
install: |
bin.install "{{ .ProjectName }}"
Expand Down

0 comments on commit 13d96a9

Please sign in to comment.