We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098927d commit 43c757fCopy full SHA for 43c757f
.github/workflows/python-publish.yml
@@ -11,6 +11,8 @@ jobs:
11
deploy:
12
13
runs-on: ubuntu-latest
14
+ permissions:
15
+ id-token: write
16
17
steps:
18
- uses: actions/checkout@v3
@@ -21,11 +23,9 @@ jobs:
21
23
- name: Install dependencies
22
24
run: |
25
python -m pip install --upgrade pip
- pip install setuptools wheel twine numpy cython
- - name: Build and publish
26
- env:
27
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ pip install setuptools wheel numpy cython
+ - name: Build
29
30
python setup.py sdist
31
- twine upload dist/*.tar.gz
+ - name: Publish
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments