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 965414d commit 59ea681
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ brews:
repository:
owner: gabe565
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TOKEN }}'
folder: Formula
install: |
bin.install "{{ .ProjectName }}"
Expand Down

0 comments on commit 59ea681

Please sign in to comment.