Skip to content

Commit 97513e3

Browse files
authored
Update prerelease-deploy.yml
Replaced twine update with existing GitHub action
1 parent d466fdb commit 97513e3

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/prerelease-deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)