diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5bf37d..0c9b446 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/ diff --git a/requirements-dev.txt b/requirements-dev.txt index 51ea5ac..c3ff23d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,5 +6,4 @@ mypy build setuptools>=68.2.2 -twine wheel