Skip to content

Commit 62dd25d

Browse files
authored
Create publish-pypi.yml
1 parent 0de9846 commit 62dd25d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will upload a Python Package using Poetry when a release is published
2+
3+
name: Publish Python Package (PyPi)
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Set up Poetry
20+
uses: Gr1N/setup-poetry@v2
21+
- name: Build and publish to PyPi
22+
env:
23+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
24+
run: |
25+
poetry build
26+
poetry publish

0 commit comments

Comments
 (0)