Fix filename when uploading multiple assets, upload training package

This commit is contained in:
Reuben Morais 2021-09-14 12:33:54 +02:00
parent 92aff6a8ef
commit 473d1a8e4f
2 changed files with 12 additions and 3 deletions

View File

@ -46,9 +46,6 @@ runs:
fi fi
done done
# If no asset name is specified, use filename
[ "$asset_name" ] || asset_name=$(basename "$filename")
AUTH="Authorization: token ${{ inputs.token }}" AUTH="Authorization: token ${{ inputs.token }}"
owner=$(echo "${{inputs.repo}}" | cut -f1 -d/) owner=$(echo "${{inputs.repo}}" | cut -f1 -d/)

View File

@ -785,6 +785,18 @@ jobs:
EOF EOF
- run: | - run: |
twine upload --repository pypi dist/* 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: twine-upload-stt:
name: "Upload STT packages to PyPI" name: "Upload STT packages to PyPI"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04