Skip to content

Commit c9fa20d

Browse files
committed
chore(ci): add PyPi release to Github CI.
1 parent b8d51bc commit c9fa20d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: PyPI Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
13+
- name: Setup Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: "3.8"
17+
18+
- name: Pip install
19+
run: python -m pip install --upgrade pip poetry
20+
shell: bash
21+
22+
- name: Checkout source code
23+
uses: actions/checkout@v2
24+
25+
- run: poetry publish --build
26+
env:
27+
POETRY_PYPI_TOKEN_PYPI: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}

0 commit comments

Comments
 (0)