Skip to content

Commit 5d304da

Browse files
authored
Update pythonpublish.yml
1 parent 65cb09e commit 5d304da

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
python -m pip install build
20-
- name: Build a binary wheel and a source tarball
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2124
run: |
22-
python -m build --sdist --wheel --outdir dist/ .
23-
- name: Publish distribution xsum to PyPI
24-
if: startsWith(github.ref, 'refs/tags')
25-
uses: pypa/gh-action-pypi-publish@release/v1
26-
with:
27-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

0 commit comments

Comments
 (0)