Skip to content

Commit b16f9fe

Browse files
🚀 add publish workflow
1 parent 6d6b7eb commit b16f9fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.8'
15+
- name: Install dependencies
16+
run: |
17+
pip install build twine
18+
- name: Build package
19+
run: python -m build
20+
- name: Publish to PyPI
21+
env:
22+
TWINE_USERNAME: __token__
23+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24+
run: twine upload dist/*

0 commit comments

Comments
 (0)