Skip to content

Commit 1746a1c

Browse files
committed
add deploy script
1 parent 6a60bc1 commit 1746a1c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy_pypi.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
deploy:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@main
15+
- name: Set up Python
16+
uses: actions/setup-python@main
17+
with:
18+
python-version: "3.13"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine pipx
23+
pip install .
24+
- name: Build and publish
25+
env:
26+
TWINE_USERNAME: __token__
27+
TWINE_PASSWORD: ${{ secrets.PYPI_PWD }}
28+
run: |
29+
pipx run build --sdist --wheel
30+
twine upload --skip-existing dist/*

0 commit comments

Comments
 (0)