Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Apr 25, 2024
1 parent e74001f commit 105449f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/scripts/upload_gh_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ IFS=',' read -ra ASSETS <<< "$3"
url="$2"
url=${url%%\{*}
for ASSET in "${ASSETS[@]}"; do
ASSET_NAME=$(basename $ASSET)
curl \
-H "Authorization: Bearer $1" \
-H "Content-Type: $(file -b --mime-type $ASSET)" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--data-binary @"$ASSET" \
"$url?name=$ASSET_NAME"
ASSET_NAME=$(basename $ASSET)
curl \
-H "Authorization: Bearer $1" \
-H "Content-Type: $(file -b --mime-type $ASSET)" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--data-binary @"$ASSET" \
"$url?name=$ASSET_NAME"
done
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,6 @@ jobs:

- name: Upload release archives (windows)
if: (github.event.inputs.upload_artifacts == 'true' || github.event_name == 'push') && matrix.os == 'windows-latest'
# This exists purely because the GH runners don't properly escape the path to the bash script and the WSL fails to run it.
shell: pwsh
run: bash .github/scripts/upload_gh_assets.sh "${{ secrets.GITHUB_TOKEN }}" "${{ needs.create-release.outputs.upload_url }}" "${{ env.ASSET }}"

0 comments on commit 105449f

Please sign in to comment.