switch to gh-actions-pypi-publish
This commit is contained in:
parent
239e4821ec
commit
54c83956b8
2 changed files with 3 additions and 7 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -6,5 +6,4 @@
|
|||
mypy
|
||||
build
|
||||
setuptools>=68.2.2
|
||||
twine
|
||||
wheel
|
||||
|
|
|
|||
Loading…
Reference in a new issue