Skip to content

Commit be32eec

Browse files
committed
chore: Add package publication workflow
1 parent 519dc66 commit be32eec

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)