add workflow for automatic deploy on pypi

add workflow for automatic deploy on pypi
This commit is contained in:
mateuslatrova 2023-10-19 21:11:47 -03:00 committed by Lucas de Sousa Rosa
parent fb4560c740
commit c0ec937188

14
.github/workflows/pypi-publish.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Python package
on:
release:
types: [published]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: "yes"