Skip to content

v0.1.3

v0.1.3 #6

name: Publish release to PyPI
on:
release:
types: [ published ]
env:
# make sure the poetry creates the venv inside the workspace under .venv
POETRY_VIRTUALENVS_IN_PROJECT: true
jobs:
build:
name: Publish from release
uses: qua-platform/qualibrate/.github/workflows/reusable-build.yaml@main
release:
name: Release package to PyPi
runs-on: ubuntu-latest
needs:
- build
permissions:
id-token: write
contents: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# This is necessary so that we have the tags.
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
pattern: python-package-*
- name: Publish distribution to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}