Skip to content

Commit 37563d3

Browse files
committed
publish to pypi workflow
1 parent bf7ca49 commit 37563d3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish Python Package to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
environment: pypi
11+
permissions:
12+
id-token: write # to authenticate as Trusted Publisher to pypi.org
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.x"
18+
cache: "pip"
19+
- run: pip install build
20+
- run: python -m build
21+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)