From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/pkgdev:main commit in: .github/workflows/
Date: Sat, 22 Apr 2023 17:03:53 +0000 (UTC) [thread overview]
Message-ID: <1682183026.cb9b372c0657cbdd7fe6c466fd385910b85d916f.arthurzam@gentoo> (raw)
commit: cb9b372c0657cbdd7fe6c466fd385910b85d916f
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 22 17:03:46 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> 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 <arthurzam <AT> 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
next reply other threads:[~2023-04-22 17:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-22 17:03 Arthur Zamarin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-19 16:04 [gentoo-commits] proj/pkgcore/pkgdev:main commit in: .github/workflows/ Arthur Zamarin
2024-01-26 20:22 Arthur Zamarin
2024-01-23 20:50 Arthur Zamarin
2024-01-23 20:50 Arthur Zamarin
2023-06-23 5:20 Arthur Zamarin
2023-03-04 14:55 Arthur Zamarin
2022-10-04 9:58 Arthur Zamarin
2022-10-04 9:57 Arthur Zamarin
2022-10-04 9:57 Arthur Zamarin
2022-10-04 9:56 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1682183026.cb9b372c0657cbdd7fe6c466fd385910b85d916f.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox