.github/workflows/upload-package.yml
name: Upload Package
on:
release:
types: [published]
jobs:
build-and-publish-python-package:
name: Build Python package with sources and publish
runs-on: ubuntu-20.04
steps:
- name: Checkout the code
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Build and publish to PyPi
uses: JRubics/poetry-publish@v1.8
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}