Skip to content

Commit 5c536df

Browse files
committed
add release action
1 parent 2e1d1b8 commit 5c536df

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
pypi_release:
9+
name: Build with Poetry and Publish to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- name: Install and configure Poetry
15+
run: |
16+
pip install poetry
17+
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
18+
- name: Publish package
19+
run: poetry publish --build

0 commit comments

Comments
 (0)