Don't overwrite asset_name for multiple files
This commit is contained in:
parent
7a20c9bd90
commit
e0e5b0391c
|
@ -95,10 +95,12 @@ runs:
|
||||||
# Upload assets
|
# Upload assets
|
||||||
for file in $filenames; do
|
for file in $filenames; do
|
||||||
if [ -z $asset_name ]; then
|
if [ -z $asset_name ]; then
|
||||||
asset_name=$(basename $file)
|
asset=$(basename $file)
|
||||||
|
else
|
||||||
|
asset=$asset_name
|
||||||
fi
|
fi
|
||||||
echo "Uploading asset with name: $asset_name from file: $file"
|
echo "Uploading asset with name: $asset from file: $file"
|
||||||
GH_ASSET="https://uploads.github.com/repos/${owner}/${repo}/releases/${id}/assets?name=${asset_name}"
|
GH_ASSET="https://uploads.github.com/repos/${owner}/${repo}/releases/${id}/assets?name=${asset}"
|
||||||
curl -T $file -X POST -H "${AUTH}" -H "Content-Type: application/octet-stream" $GH_ASSET
|
curl -T $file -X POST -H "${AUTH}" -H "Content-Type: application/octet-stream" $GH_ASSET
|
||||||
done
|
done
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -794,7 +794,7 @@ jobs:
|
||||||
uses: ./.github/actions/upload-release-asset
|
uses: ./.github/actions/upload-release-asset
|
||||||
with:
|
with:
|
||||||
name: '' # use filename
|
name: '' # use filename
|
||||||
path: "*.whl"
|
path: "dist/*.whl"
|
||||||
release-tag: ${{ steps.get-tag.outputs.tag }}
|
release-tag: ${{ steps.get-tag.outputs.tag }}
|
||||||
should-create-release: true
|
should-create-release: true
|
||||||
twine-upload-stt:
|
twine-upload-stt:
|
||||||
|
|
Loading…
Reference in New Issue