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:
|
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 }}
|
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,4 @@
|
||||||
mypy
|
mypy
|
||||||
build
|
build
|
||||||
setuptools>=68.2.2
|
setuptools>=68.2.2
|
||||||
twine
|
|
||||||
wheel
|
wheel
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue