Skip to content

Commit 2c9948a

Browse files
committed
add publish to pypi workflow
1 parent 1cd34cf commit 2c9948a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install poetry
20+
- name: Build and publish
21+
env:
22+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
23+
run: |
24+
poetry build
25+
poetry publish --username __token__ --password $PYPI_API_TOKEN

0 commit comments

Comments
 (0)