Skip to content

Commit cb8705f

Browse files
committed
publish to PyPI with trusted publisher
1 parent 8055661 commit cb8705f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PyPI publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
workflow_dispatch:
7+
8+
jobs:
9+
pypi-publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.x'
19+
20+
- run: pip install build && python -m build
21+
22+
# publish with https://docs.pypi.org/trusted-publishers/
23+
- uses: pypa/gh-action-pypi-publish@release/v1
24+
env:
25+
name: pypi
26+
url: https://pypi.org/p/pigwig

0 commit comments

Comments
 (0)