Skip to content

Commit e7150a2

Browse files
authored
Merge pull request #266 from Sichao25/update
Debug PyPI publish workflow
2 parents 6c6ce35 + 6d40b45 commit e7150a2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ jobs:
4242
run: |
4343
python -m pip install --upgrade pip
4444
pip install setuptools wheel twine
45-
- name: Build and publish
46-
env:
47-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
48-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
49-
run: |
50-
python setup.py sdist bdist_wheel
51-
twine upload dist/*
45+
- name: Build package
46+
run: python setup.py sdist bdist_wheel
47+
- name: Publish package
48+
uses: pypa/gh-action-pypi-publish@release/v1
49+
with:
50+
verbose: true
51+
repository-url: https://upload.pypi.org/legacy/
52+
user: __token__
53+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)