Skip to content

Commit 6a0555d

Browse files
author
rdbch
committed
add github act
1 parent 62f1950 commit 6a0555d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/pypi_upload.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Pypi Publish ClaraVid
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
19+
- name: Install hatch & twine
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install hatch twine
23+
24+
- name: Build universal wheel
25+
run: |
26+
hatch build
27+
28+
- name: Publish to PyPI
29+
env:
30+
TWINE_USERNAME: __token__
31+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
32+
run: |
33+
twine upload dist/*

0 commit comments

Comments
 (0)