Skip to content

Commit c4a9016

Browse files
authored
Merge pull request #31 from srlearn/pypi-deploy-token
🔧 Set `pythonpublish.yml` to use `pypi-publish`
2 parents 5bb6afa + 82ac99a commit c4a9016

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
run: |
1919
python -m pip install --upgrade pip
2020
pip install setuptools wheel twine
21-
- name: Build and publish
22-
env:
23-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
21+
- name: Build
2522
run: |
2623
python setup.py sdist bdist_wheel
27-
twine upload dist/*
24+
- name: Publish
25+
uses: pypa/[email protected]
26+
with:
27+
password: ${{ secrets.PYPI_API_TOKEN }}\

0 commit comments

Comments
 (0)