Skip to content

Commit

Permalink
Strips the build hash from pypi package releases
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrocoan committed May 1, 2020
1 parent 24113c8 commit 94cbedd
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
Expand Down Expand Up @@ -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' )
Expand All @@ -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/*

0 comments on commit 94cbedd

Please sign in to comment.