Skip to content

Commit 9794883

Browse files
committed
Add release action
1 parent b4be2f0 commit 9794883

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Upload Python Package
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@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.13'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip setuptools
22+
python -m pip install build wheel twine
23+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
24+
python -m pip list
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python -m build --wheel --no-isolation
31+
twine upload dist/*
32+

0 commit comments

Comments
 (0)