Skip to content

Commit 7dc58f8

Browse files
committed
Add publish.yaml
1 parent 4bba783 commit 7dc58f8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
wheels:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Python 3.x
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.x"
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install poetry==1.1.12
24+
25+
- name: Build and Publish
26+
run: |
27+
poetry config pypi-token.pypi "$PYPI_TOKEN"
28+
poetry publish --build
29+
env:
30+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)