Skip to content

Commit

Permalink
ci: fixing upload binary permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xosnrdev committed Aug 7, 2024
1 parent d74b02d commit c78e377
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
with:
toolchain: stable

- name: Get upload url
id: get_release_url
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare upload url
run: |
UPLOAD_URL="$(jq -r '.release.upload_url' "$GITHUB_EVENT_PATH" | sed -e "s/{?name,label}$/?name=${ARCHIVE_NAME}/")"
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
- name: Build binary
run: |
Expand All @@ -43,7 +42,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release_url.outputs.upload_url }}
upload_url: ${{ env.UPLOAD_URL }}
asset_path: ${{ env.ARCHIVE_NAME }}
asset_name: ${{ env.ARCHIVE_NAME }}
asset_content_type: application/gzip

0 comments on commit c78e377

Please sign in to comment.