Fix filename when uploading multiple assets, upload training package
This commit is contained in:
parent
92aff6a8ef
commit
473d1a8e4f
|
@ -46,9 +46,6 @@ runs:
|
|||
fi
|
||||
done
|
||||
|
||||
# If no asset name is specified, use filename
|
||||
[ "$asset_name" ] || asset_name=$(basename "$filename")
|
||||
|
||||
AUTH="Authorization: token ${{ inputs.token }}"
|
||||
|
||||
owner=$(echo "${{inputs.repo}}" | cut -f1 -d/)
|
||||
|
|
|
@ -785,6 +785,18 @@ jobs:
|
|||
EOF
|
||||
- run: |
|
||||
twine upload --repository pypi dist/*
|
||||
- name: Get tag name
|
||||
id: get-tag
|
||||
run: |
|
||||
tag=$(echo "${{ github.ref }}" | sed -e 's|^refs/tags/||')
|
||||
echo "::set-output name=tag::$tag"
|
||||
- name: Upload artifacts to GitHub release
|
||||
uses: ./.github/actions/upload-release-asset
|
||||
with:
|
||||
name: '' # use filename
|
||||
path: "*.whl"
|
||||
release-tag: ${{ steps.get-tag.outputs.tag }}
|
||||
should-create-release: true
|
||||
twine-upload-stt:
|
||||
name: "Upload STT packages to PyPI"
|
||||
runs-on: ubuntu-20.04
|
||||
|
|
Loading…
Reference in New Issue