Skip to content

Commit

Permalink
fix(ci): Provide credentials token to gh CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Oct 22, 2023
1 parent bc2e25b commit 1c9c21f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ jobs:
path: "$ASSET_FILE"

- name: Attach binary to release
env:
# `gh` blows up without token, cf.
# https://josh-ops.com/posts/gh-auth-login-in-actions/#example-2---env-variable
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
gh release upload
${{ needs.release-please.outputs.tag_name }}
Expand Down

0 comments on commit 1c9c21f

Please sign in to comment.