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 2CB0B15ACFB for ; Sat, 22 Apr 2023 17:03:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A93FE070D; Sat, 22 Apr 2023 17:03:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D8E2E070D for ; Sat, 22 Apr 2023 17:03:55 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D6AF340DDE for ; Sat, 22 Apr 2023 17:03:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37EECA48 for ; Sat, 22 Apr 2023 17:03:53 +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: <1682183026.cb9b372c0657cbdd7fe6c466fd385910b85d916f.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgdev:main commit in: .github/workflows/ X-VCS-Repository: proj/pkgcore/pkgdev 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: cb9b372c0657cbdd7fe6c466fd385910b85d916f X-VCS-Branch: main Date: Sat, 22 Apr 2023 17:03:53 +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: 564aabf8-c010-4834-8237-d6bec121bd95 X-Archives-Hash: 80a1285cc3242b1044c703ccf2c6cabb commit: cb9b372c0657cbdd7fe6c466fd385910b85d916f Author: Arthur Zamarin gentoo org> AuthorDate: Sat Apr 22 17:03:46 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Apr 22 17:03:46 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=cb9b372c ci: use new PyPI OIDC publish Signed-off-by: Arthur Zamarin gentoo.org> .github/workflows/release.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f24e520..642708f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,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@v2 @@ -42,18 +49,14 @@ jobs: sha512sum dist/* tar -ztf dist/*.tar.gz | sort - - name: Install twine and check files - run: | - pip install twine wheel-inspect - twine check dist/* - wheel2json dist/*.whl + - uses: actions/upload-artifact@v3 + with: + name: results + path: dist/* - - name: Upload to PyPI - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + - 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 @@ -61,3 +64,4 @@ jobs: with: files: dist/*.tar.gz fail_on_unmatched_files: true + draft: true