Skip to content

Commit 05e07ac

Browse files
authored
Update upload_to_pypi.yml
1 parent 668637a commit 05e07ac

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/upload_to_pypi.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@ jobs:
88
upload:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
12+
1213
- name: Set up Python
13-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1415
with:
1516
python-version: '3.8'
17+
cache: 'pip'
18+
1619
- name: Install dependencies
1720
run: |
1821
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
22+
pip install build twine
23+
2024
- name: Build and publish
2125
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
TWINE_USERNAME: __token__
27+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2428
run: |
25-
python setup.py sdist bdist_wheel
29+
python -m build
2630
twine upload dist/*

0 commit comments

Comments
 (0)