File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,14 @@ jobs:
2222 run : |
2323 python -m pip install --upgrade pip
2424 pip install setuptools wheel twine
25+ - name : add version variable
26+ run : |
27+ export RELEASE_VERSION=${{ github.event.release.tag_name }}
28+ echo "::set-env name=RELEASE_VERSION::$RELEASE_VERSION"
2529 - name : Build and publish
2630 env :
2731 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
2832 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
2933 run : |
30- python setup.py sdist bdist_wheel "${{ github.event.release.tag_name }}"
34+ python setup.py sdist bdist_wheel
3135 twine upload dist/*
Original file line number Diff line number Diff line change 1- import sys
1+ import os
22import setuptools
33
4- v = sys . argv [ 3 ]
5- sys . argv = sys . argv [: 2 ]
4+ v = os . environ [ 'RELEASE_VERSION' ]
5+ print ( 'Version: ' , v )
66
77with open ("README.md" , "r" ) as fh :
88 long_description = fh .read ()
You can’t perform that action at this time.
0 commit comments