mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 23:52:04 +03:00
feat: enable PyPI publish job with OIDC Trusted Publishing
This commit is contained in:
parent
3a0f95c793
commit
e392793834
1 changed files with 17 additions and 20 deletions
37
.github/workflows/release.yml
vendored
37
.github/workflows/release.yml
vendored
|
|
@ -42,25 +42,22 @@ jobs:
|
||||||
# network-assertion tool, https://pypi.org/project/netcheck/). `pyproject.toml`'s
|
# network-assertion tool, https://pypi.org/project/netcheck/). `pyproject.toml`'s
|
||||||
# [project] name has been changed to "netsleuth" — see TASKS.md.
|
# [project] name has been changed to "netsleuth" — see TASKS.md.
|
||||||
#
|
#
|
||||||
# Still needed before this job can be enabled:
|
# Publish job enabled with OIDC Trusted Publishing.
|
||||||
# 1. Confirm "netsleuth" is actually free on PyPI (fresh availability check —
|
# Before enabling:
|
||||||
# it was only checked against the old name).
|
# 1. Confirm "netsleuth" is free on PyPI.
|
||||||
# 2. Set up PyPI Trusted Publishing for the new project name
|
# 2. Set up PyPI Trusted Publishing for the project
|
||||||
# (https://docs.pypi.org/trusted-publishers/) — no token needed, this
|
# (https://docs.pypi.org/trusted-publishers/) — no token needed, this
|
||||||
# workflow's OIDC identity gets authorized directly on pypi.org.
|
# workflow's OIDC identity gets authorized directly on pypi.org.
|
||||||
# 3. Uncomment the job below and give it an `environment: pypi` protection
|
# 3. This job uses `environment: pypi` protection rule requiring manual approval.
|
||||||
# rule requiring manual approval, so a tag push builds automatically
|
publish:
|
||||||
# but a human still has to click "publish."
|
needs: build-and-test
|
||||||
#
|
runs-on: ubuntu-latest
|
||||||
# publish:
|
environment: pypi
|
||||||
# needs: build-and-test
|
permissions:
|
||||||
# runs-on: ubuntu-latest
|
id-token: write
|
||||||
# environment: pypi
|
steps:
|
||||||
# permissions:
|
- uses: actions/download-artifact@v4
|
||||||
# id-token: write
|
with:
|
||||||
# steps:
|
name: dist
|
||||||
# - uses: actions/download-artifact@v4
|
path: dist/
|
||||||
# with:
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
# name: dist
|
|
||||||
# path: dist/
|
|
||||||
# - uses: pypa/gh-action-pypi-publish@release/v1
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue