Skip to content

Commit 400bbbc

Browse files
committed
ci: add automated PyPI publish on GitHub release
1 parent e161b06 commit 400bbbc

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CIRCLE_API_TOKEN=your_token_here
2+
CIRCLE_COMMUNITY_URL=https://your-community.circle.so

.github/workflows/publish.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ env/
1515
.mypy_cache/
1616
*.so
1717
.DS_Store
18+
scripts/

0 commit comments

Comments
 (0)