Skip to content

Commit f12f35d

Browse files
Update publishing2PyPI.yml
1 parent 61d3dcc commit f12f35d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/publishing2PyPI.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,13 @@ jobs:
2525
echo "Version $curr_version does not match tag $TAG"
2626
exit 1
2727
fi
28-
- name: Configure pypirc
29-
run: |
30-
cat << EOF > ~/.pypirc
31-
[distutils]
32-
index-servers =
33-
pypi
34-
[pypi]
35-
username=${{ secrets.USER }}
36-
password=${{ secrets.PASS }}
37-
EOF
3828
- name: Create distribution files
3929
run: |
4030
python3 setup.py sdist
4131
- name: Upload distribution files
32+
env:
33+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
34+
TWINE_USER: ${{ secrets.USER }}
4235
run: |
4336
python3 -m pip install --user --upgrade twine
44-
ls dist/ | xargs -I % python3 -m twine upload --repository pypi dist/%
37+
ls dist/ | xargs -I % python3 -m twine upload --repository pypi dist/%

0 commit comments

Comments
 (0)