Skip to content

Commit 0186e65

Browse files
committed
Add GitHub Action for publishing to PyPI
1 parent d1e4dcb commit 0186e65

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pypi.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
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+
pip install --upgrade pip==20.2.4 poetry==1.1.4
19+
poetry config virtualenvs.create false
20+
poetry install
21+
- name: Build and publish
22+
run: |
23+
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
24+
poetry publish --build

0 commit comments

Comments
 (0)