Skip to content

Commit 7016821

Browse files
committed
Publish Python package using PyPI token
1 parent 3edcb41 commit 7016821

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: '3.x'
16+
python-version: '3.9'
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
21-
- name: Build and publish
22-
env:
23-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
20+
pip install setuptools wheel
21+
- name: Build
2522
run: |
2623
python setup.py sdist bdist_wheel
27-
twine upload dist/*
24+
- name: Publish
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
user: __token__
28+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)