From 062c3a9e97be1af7d3ececbe3d1e9a9b035a7e5f Mon Sep 17 00:00:00 2001 From: tqtg <tuantq.vnu@gmail.com> Date: Sat, 10 Jul 2021 12:56:33 +0800 Subject: [PATCH] only rename linux wheels on ubuntu --- .github/workflows/python-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f6469417..f278973d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -48,7 +48,11 @@ jobs: - name: Build wheels run: python setup.py bdist_wheel - + + - name: Rename Linux wheels to supported platform of PyPI + if: matrix.os == 'ubuntu-latest' + run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done + - name: Publish wheels to GitHub artifacts uses: actions/upload-artifact@v2 with: @@ -66,9 +70,6 @@ jobs: with: name: wheels path: dist/ - - - name: Rename Linux wheels to supported platform of PyPI - run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done - name: Set up Python uses: actions/setup-python@v2 -- GitLab