From 473d1a8e4fb21ad988c2af0b38c32ee36a34a017 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Tue, 14 Sep 2021 12:33:54 +0200 Subject: [PATCH] Fix filename when uploading multiple assets, upload training package --- .github/actions/upload-release-asset/action.yml | 3 --- .github/workflows/build-and-test.yml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/actions/upload-release-asset/action.yml b/.github/actions/upload-release-asset/action.yml index 78e5c037..6923214f 100644 --- a/.github/actions/upload-release-asset/action.yml +++ b/.github/actions/upload-release-asset/action.yml @@ -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/) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c0358797..a61fae5b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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