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

View file

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