Skip to content

Commit da22f87

Browse files
committed
Use official action for uploading package to PyPi
1 parent 6061c65 commit da22f87

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
steps:
1113
- uses: actions/checkout@v2
1214
- name: Set up Python
@@ -17,10 +19,7 @@ jobs:
1719
run: |
1820
python -m pip install --upgrade pip
1921
pip install setuptools wheel twine
20-
- name: Build and publish
21-
env:
22-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24-
run: |
25-
python setup.py sdist bdist_wheel
26-
twine upload dist/*
22+
- name: Build package
23+
run: python setup.py sdist bdist_wheel
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0

0 commit comments

Comments
 (0)