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 7c5cc34
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 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,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' )
Expand All @@ -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/*

0 comments on commit 7c5cc34

Please sign in to comment.