Skip to content

Commit 432ea20

Browse files
committed
Fix PYPI upload mechanism
1 parent 277e247 commit 432ea20

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/check-and-publish.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,11 @@ jobs:
9696
python -m pip install --upgrade pip
9797
pip install setuptools wheel twine
9898
99+
- name: Build package
100+
run: python setup.py sdist --verbose
101+
99102
- name: Build and publish
100-
env:
101-
102-
# Create an account on https://pypi.org/
103-
# Add your user/password as secrets in the github repository.
104-
# see https://docs.github.com/en/actions/reference/encrypted-secrets
105-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
106-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
107-
108-
run: |
109-
python setup.py sdist --verbose
110-
twine upload dist/* --verbose
103+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
104+
with:
105+
user: __token__
106+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)