Skip to content

Commit 2f83645

Browse files
committed
update: publish
1 parent 55fa1e9 commit 2f83645

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ jobs:
1515
python-version: 3.8
1616
- name: Install dependencies
1717
run: |
18-
pip install -r requirements-dev.txt
19-
pip install build
18+
python3 -m pip install -r requirements-dev.txt
19+
python3 -m pip install -U setuptools wheel twine
2020
- name: Build package
21-
run: python -m build
21+
run: |
22+
python3 setup.py sdist bdist_wheel
2223
- name: Publish package to PyPI
23-
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
user: __token__
26-
password: ${{ secrets.PYPI_TOKEN }}
24+
run: |
25+
python3 -m twine upload dist/*
26+
env:
27+
TWINE_USERNAME: __token__
28+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)