Skip to content

Commit af9993b

Browse files
authored
Added CD: .github/workflows/deploy.yml (#104)
1 parent 899adca commit af9993b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
env:
11+
POETRY_VIRTUALENVS_CREATE: "false"
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install poetry
16+
run: |
17+
pipx install poetry
18+
pipx inject poetry poetry-bumpversion
19+
20+
- name: Build
21+
run: |
22+
poetry version ${{ github.ref_name }}
23+
poetry build
24+
25+
- name: Publish
26+
run: |
27+
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
28+
poetry publish

0 commit comments

Comments
 (0)