From 54c83956b88f74f2bd92344513354c43ef807267 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Thu, 7 Dec 2023 20:14:35 -0600 Subject: [PATCH] switch to gh-actions-pypi-publish --- .github/workflows/release.yml | 9 +++------ requirements-dev.txt | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) 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