Skip to content

Commit 550db2a

Browse files
committed
gha: add release workflow
1 parent 15bedbc commit 550db2a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish package to PyPI
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.9"
17+
- name: Install requirements
18+
run: |
19+
pip install -U pip twine build
20+
- name: Build
21+
run: python -m build
22+
- run: check-manifest
23+
- run: twine check dist/*
24+
- name: Publish to PyPI
25+
env:
26+
TWINE_USERNAME: "__token__"
27+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
28+
run: twine upload dist/*

0 commit comments

Comments
 (0)