Skip to content

v11.1.0

v11.1.0 #83

Workflow file for this run

name: Publish Python Package
on:
release:
types: [created]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
# this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
run: |
pipx install poetry
pipx inject poetry "poetry-dynamic-versioning[plugin]"
- name: Install project dependencies
run: poetry install --no-interaction
- name: Generate project files
run: |
poetry dynamic-versioning
make squeaky-clean all
- name: Build source and wheel archives
run: poetry build
- name: Publish distribution 📦 to PyPI
# No username or password because we're using trusted publishing
uses: pypa/gh-action-pypi-publish@release/v1