Skip to content

Commit 1ac6db1

Browse files
dfuncktzerolab
andauthored
Use the publish action provided by PyPi
Co-authored-by: Dan Braghis <[email protected]>
1 parent da4a764 commit 1ac6db1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: '__token__'
28-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
24+
pip install setuptools wheel
25+
- name: Build
26+
run: python setup.py sdist bdist_wheel
27+
- name: Publish to PyPI
28+
uses: pypa/gh-action-pypi-publish@release/v1
29+
with:
30+
user: '__token__'
31+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)