v11.1.0 #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |