Skip to content

Commit 1cdcd9f

Browse files
ci: add manual PyPI publish workflow (OIDC, dispatch) (#25)
1 parent 7716a69 commit 1cdcd9f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: manual-publish-pypi
2+
on:
3+
workflow_dispatch:
4+
5+
permissions:
6+
contents: read
7+
id-token: write
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
environment: pypi
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.12"
18+
- run: python -m pip install --upgrade pip build
19+
- run: python -m build
20+
- name: Publish to PyPI (OIDC)
21+
uses: pypa/gh-action-pypi-publish@release/v1
22+
with:
23+
packages-dir: dist

0 commit comments

Comments
 (0)