Skip to content

Commit ffec808

Browse files
authored
Add GitHub Actions workflow for PyPI release
1 parent 5e0dcb5 commit ffec808

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build-and-publish:
10+
name: Build and publish to PyPI
11+
runs-on: ubuntu-latest
12+
environment: release
13+
permissions:
14+
id-token: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
- run: pip install build
22+
- run: python -m build
23+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)