From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0EFB15806E for ; Wed, 17 May 2023 19:10:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EDCE5E07D4; Wed, 17 May 2023 19:10:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA360E07D4 for ; Wed, 17 May 2023 19:10:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A19DC335D84 for ; Wed, 17 May 2023 19:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11396A34 for ; Wed, 17 May 2023 19:10:42 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1684350634.1f94bb1fde20c3db60370e608c4ce8d25b19b0c9.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/snakeoil:master commit in: .github/workflows/ X-VCS-Repository: proj/pkgcore/snakeoil X-VCS-Files: .github/workflows/release.yml X-VCS-Directories: .github/workflows/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 1f94bb1fde20c3db60370e608c4ce8d25b19b0c9 X-VCS-Branch: master Date: Wed, 17 May 2023 19:10:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0a967b3c-6404-4a10-8fa8-8aab7994a6fa X-Archives-Hash: f7a7e55bb4a1301e62ea594e1ed92e3e commit: 1f94bb1fde20c3db60370e608c4ce8d25b19b0c9 Author: Arthur Zamarin gentoo org> AuthorDate: Wed May 17 19:10:34 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed May 17 19:10:34 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=1f94bb1f ci: use new PyPI OIDC publish Signed-off-by: Arthur Zamarin gentoo.org> .github/workflows/release.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00120669..8b246c22 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,13 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + environment: release + + permissions: + id-token: write # Used to authenticate to PyPI via OIDC + + contents: write # Used to authenticate github release publish + steps: - name: Checkout code uses: actions/checkout@v3 @@ -48,20 +55,9 @@ jobs: name: results path: dist/* - - name: Install twine and check files - run: | - pip install twine wheel-inspect - twine check dist/* - wheel2json dist/*.whl - - - name: Upload to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - # only upload files for tagged releases + - name: publish + uses: pypa/gh-action-pypi-publish@release/v1 if: startsWith(github.ref, 'refs/tags/') - run: | - twine upload dist/* - name: Create GitHub release uses: softprops/action-gh-release@v1 @@ -69,3 +65,4 @@ jobs: with: files: dist/*.tar.gz fail_on_unmatched_files: true + draft: true