Skip to content

Commit 73cc441

Browse files
committed
github: add release action
This publishes the Python package to PyPI when a release is created on GitHub.
1 parent 7770a88 commit 73cc441

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build_and_publish:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v2
13+
with:
14+
python-version: 3.8
15+
- uses: abatilo/[email protected]
16+
with:
17+
poetry-version: 1.1.6
18+
- run: poetry install
19+
- run: poetry build
20+
- run: poetry publish
21+
env:
22+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)