Skip to content

Commit f7c487c

Browse files
committed
Add upload pipeline
1 parent b7a4753 commit f7c487c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/upload.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Upload Python Package
2+
on: [workflow_dispatch]
3+
4+
jobs:
5+
upload:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: actions/setup-python@v4
10+
with:
11+
python-version: 3.10
12+
- name: Install dependencies
13+
run: pip install --upgrade setuptools build wheel twine
14+
- name: Build and upload
15+
env:
16+
TWINE_USERNAME: __token__
17+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
18+
run: |
19+
python -m build
20+
twine upload dist/*

0 commit comments

Comments
 (0)