Skip to content

Commit cf7d2df

Browse files
authored
Add Pypi release workflow to CI (Delgan#1146)
1 parent 30ee26a commit cf7d2df

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: 3.x
18+
19+
- run: pipx run build
20+
21+
- run: twine check --strict dist/*
22+
23+
- run: pipx run twine upload dist/* --disable-progress-bar
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)