Skip to content

v1.1.10

v1.1.10 #10

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write # For trusted publishing to PyPI
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Install project
run: poetry install --no-interaction
- name: Update version from tag
run: |
# Extract version from git tag (remove 'v' prefix if present)
VERSION=${GITHUB_REF#refs/tags/}
VERSION=${VERSION#v}
echo "Setting version to $VERSION"
poetry version $VERSION
- name: Build package
run: poetry build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true