From b158cf6c7e1b4dffaba111e780cb7947f9f75b41 Mon Sep 17 00:00:00 2001 From: ScriptAutomate Date: Mon, 26 Aug 2024 15:54:02 -0500 Subject: [PATCH] Enable write for Trusted Publishers pypi --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b57cd4..8555462 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,9 @@ on: jobs: Publish: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v4 with: @@ -21,10 +24,9 @@ jobs: - name: Build a binary wheel and a source tarball run: | nox -e build - - - name: Publish distribution 📦 to PyPI + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: print-hash: true - skip-existing: true + verbose: true verify-metadata: true