Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit e26909f

Browse files
committed
Using pypa/gh-action to try to fix twine error
1 parent 8806bda commit e26909f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@ jobs:
2121

2222
- name: Install setuptools
2323
run: |
24-
python3 -m pip install --upgrade setuptools wheel twine
25-
24+
python3 -m pip install --upgrade setuptools wheel
2625
- name: Install dependencies
2726
run: |
2827
python3 setup.py install
2928
- name: Build a binary wheel and a source tarball
3029
run: |
3130
python3 setup.py sdist
3231
python3 setup.py bdist_wheel
33-
- name: Publish distribution to PyPI
34-
env:
35-
TWINE_USERNAME: __token__
36-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
37-
run: |
38-
twine upload dist/*
32+
- name: Publish distribution 📦 to PyPI
33+
uses: pypa/gh-action-pypi-publish@master
34+
with:
35+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)