mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Strips the build hash from pypi package releases
https://github.com/ankitects/anki/pull 535
This commit is contained in:
parent
24113c81ec
commit
7c5cc341ba
1 changed files with 13 additions and 3 deletions
16
.github/workflows/checks.yml
vendored
16
.github/workflows/checks.yml
vendored
|
@ -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,15 @@ jobs:
|
|||
TWINE_USERNAME: __token__
|
||||
run: |
|
||||
echo on
|
||||
rm -f "dist/%pyaudio%"
|
||||
cd dist
|
||||
rm -f "%pyaudio%"
|
||||
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 pip install twine
|
||||
twine upload --non-interactive --skip-existing --verbose dist/*
|
||||
python -m twine upload --non-interactive --skip-existing --verbose ./*
|
||||
|
||||
- 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 +298,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/*
|
||||
|
|
Loading…
Reference in a new issue