We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382a510 commit 386601bCopy full SHA for 386601b
.github/workflows/pypi-publish.yml
@@ -7,6 +7,8 @@ on:
7
jobs:
8
deploy:
9
runs-on: ubuntu-latest
10
+ permissions:
11
+ id-token: write
12
steps:
13
- uses: actions/checkout@v4
14
- name: Set up Python
@@ -25,10 +27,8 @@ jobs:
25
27
then
26
28
echo "package ver. ($PACKAGE_VER) != release ver. ($RELEASE_VER)"; exit 1
29
fi
- - name: Build and publish
- env:
30
- TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
31
- TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ - name: Build
32
run: |
33
python -m build
34
- twine upload dist/*
+ - name: Publish package distributions to PyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments