Skip to content

Commit e50d971

Browse files
authored
Update python-publish.yml
1 parent d7838ae commit e50d971

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,10 @@ jobs:
1919
with:
2020
python-version: '3.x'
2121

22-
- name: Install dependencies
22+
- name: Install dependencies and Publish package
2323
run: |
24+
cd /PyPI/Package
2425
python -m pip install --upgrade pip
2526
pip install build twine
26-
working-directory: /PyPI/Package
27-
28-
- name: Build package
29-
run: python -m build
30-
working-directory: /PyPI/Package
31-
32-
- name: Publish package to PyPI
33-
run: python -m twine upload dist/*
34-
working-directory: /PyPI/Package
35-
env:
36-
TWINE_USERNAME: __token__
37-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
27+
python -m build
28+
python -m twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)