Skip to content

Commit

Permalink
fix release upload
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Mar 26, 2023
1 parent a3ba5e3 commit a2488bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: [created]


permissions:
contents: write

jobs:
output-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
- name: Upload tarball to release
run: |
UPLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \
UPLOAD_URL=$(curl -sH "Authorization: ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \
| jq -r '.upload_url' | cut -d'{' -f1)
FILE=solana-${{ github.event.release.name }}-ubuntu-2204.tgz
curl -X POST \
Expand Down Expand Up @@ -97,7 +100,7 @@ jobs:
- name: Upload tarball to release
run: |
UPLOAD_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \
UPLOAD_URL=$(curl -sH "Authorization: ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.event.release.name }}" \
| jq -r '.upload_url' | cut -d'{' -f1)
FILE=solana-${{ github.event.release.name }}-ubuntu-2004.tgz
curl -X POST \
Expand Down

0 comments on commit a2488bf

Please sign in to comment.