diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e8a67ef69b9..fec46160362 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -250,6 +250,7 @@ jobs: cd dist setlocal EnableDelayedExpansion cmd /C set "wheels=" && for /f "delims=" %%i in ('dir /b *.*') DO set "wheels="%%i" !wheels!" + python -m pip install pyqtwebengine %wheels% python -c "import aqt; # aqt.run()" @@ -279,9 +280,16 @@ jobs: TWINE_USERNAME: __token__ run: | echo on - rm -f "dist/%pyaudio%" + cd dist + rm -f "%pyaudio%" python -m pip install twine - twine upload --non-interactive --skip-existing --verbose dist/* + + setlocal EnableDelayedExpansion + cmd /C set "wheels=" && for /f "delims=" %%i in ('dir /b *.*') DO set "wheels="%%i" !wheels!" + + :: https://github.com/ankitects/anki/pull/535 + perl ../scripts/rename -f "s@\+[\w\d]+-@-@g" %wheels% + python -m twine upload --non-interactive --skip-existing --verbose %wheels% - name: Upload to PyPi Linux/Mac OS if: matrix.BUILD_TYPE == 'disabled' && startsWith(github.ref, 'refs/tags/') && ( matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' ) @@ -291,4 +299,7 @@ jobs: run: | set -x python -m pip install twine - twine upload --non-interactive --skip-existing --verbose dist/* + + # https://github.com/ankitects/anki/pull/535 + perl scripts/rename -f "s@\+[\w\d]+-@-@g" dist/* + python -m twine upload --non-interactive --skip-existing --verbose dist/*