Skip to content

Commit 34140c2

Browse files
committed
add release script
1 parent 06cfb87 commit 34140c2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release New PyPi Version
2+
3+
on:
4+
workflow_dispatch: # This event allows manual triggering
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v5
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: 3.11.x
18+
19+
- name: Poetry cache
20+
uses: actions/cache@v4
21+
with:
22+
path: ~/.cache/pypoetry
23+
key: poetry-cache
24+
25+
- name: Install Poetry
26+
uses: snok/install-poetry@v1
27+
28+
- name: Install dependencies
29+
run: poetry install --all-extras
30+
31+
- name: Upload to PyPI
32+
env:
33+
PYPI_ORG_TOKEN: ${{ secrets.PYPI_ORG_TOKEN }}
34+
run: poetry publish --build -u __token__ -p $PYPI_ORG_TOKEN

0 commit comments

Comments
 (0)