Skip to content

Commit fc900bd

Browse files
committed
python
1 parent cd13cbe commit fc900bd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
permissions:
117117
contents: read
118118
issues: write
119+
id-token: write # Required for Trusted Publishing.
119120
steps:
120121
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
121122
with:
@@ -145,14 +146,10 @@ jobs:
145146
done
146147
env:
147148
APIX_BOT_GPG_PASSPHRASE: ${{ secrets.APIX_BOT_GPG_PASSPHRASE }}
148-
149149
- name: Upload to PyPI
150-
env:
151-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
152-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
153-
run: |
154-
pip install twine
155-
twine upload dist/python/*.whl dist/python/*.tar.gz
150+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
151+
with:
152+
packages-dir: dist/python/
156153
release_nuget:
157154
name: Publish to NuGet Gallery
158155
needs: release

0 commit comments

Comments
 (0)