Refactor asset upload in fetch-release workflow to use a loop for individual file uploads

This commit is contained in:
XargonWan 2025-01-10 10:23:22 +09:00
parent f83a42a333
commit 7a2da98d66

View file

@ -62,10 +62,10 @@ jobs:
prerelease: false
- name: Upload assets to the new release
uses: actions/upload-release-asset@v1
run: |
for file in artifacts/*; do
echo "Uploading $file..."
gh release upload ${{ env.tag_name }} "$file" --clobber
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/*
asset_content_type: application/octet-stream