File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,10 +38,14 @@ jobs:
3838 - name : Test with pytest
3939 run : |
4040 pytest
41- - name : Deploy to PyPI
41+ - name : Create Python Distribution
4242 run : |
4343 echo "Python package version: ${{ steps.get_version.outputs.VERSION }}"
4444 sed -i -E -r "s/version = \"(.*)\"/version = \"${{ steps.get_version.outputs.VERSION }}\"/g" setup.py
45- pip install wheel twine --upgrade wheel twine
46- python setup.py -q sdist bdist_wheel
47- twine upload --repository-url https://test.pypi.org/legacy/ .\dist\*
45+ python -m build --sdist --wheel --outdir dist/
46+ - name : Deploy Distribution to Test PyPI
47+ uses : pypa/gh-action-pypi-publish@master
48+ with :
49+ user : ${{ secrets.TWINE_USERNAME_TEST }}
50+ password : ${{ secrets.TWINE_PASSWORD_TEST }}
51+ repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments