switch to gh-actions-pypi-publish

This commit is contained in:
Jeff Epler 2023-12-07 20:14:35 -06:00
parent 239e4821ec
commit 54c83956b8
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE
2 changed files with 3 additions and 7 deletions

View file

@ -12,8 +12,6 @@ jobs:
release: release:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions: permissions:
# IMPORTANT: this permission is mandatory for trusted publishing # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write id-token: write
@ -39,7 +37,6 @@ jobs:
run: python -mbuild run: python -mbuild
- name: Upload release - name: Upload release
run: twine upload -u "$TWINE_USERNAME" -p "$TWINE_PASSWORD" dist/* uses: pypa/gh-action-pypi-publish@release/v1
env: with:
TWINE_USERNAME: __token__ packages-dir: dist/
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

View file

@ -6,5 +6,4 @@
mypy mypy
build build
setuptools>=68.2.2 setuptools>=68.2.2
twine
wheel wheel