File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 8
8
upload :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v3
12
+
12
13
- name : Set up Python
13
- uses : actions/setup-python@v2
14
+ uses : actions/setup-python@v4
14
15
with :
15
16
python-version : ' 3.8'
17
+ cache : ' pip'
18
+
16
19
- name : Install dependencies
17
20
run : |
18
21
python -m pip install --upgrade pip
19
- pip install setuptools wheel twine
22
+ pip install build twine
23
+
20
24
- name : Build and publish
21
25
env :
22
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
23
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
26
+ TWINE_USERNAME : __token__
27
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
24
28
run : |
25
- python setup.py sdist bdist_wheel
29
+ python -m build
26
30
twine upload dist/*
You can’t perform that action at this time.
0 commit comments