Skip to content

v0.20.0

v0.20.0 #59

Workflow file for this run

---
name: Publish to PyPI
on:
release:
types: [published]
jobs:
publish-to-pypi:
name: Publish Python distribution to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/myskoda
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
cache: "poetry"
- name: Install Poetry Dynamic Versioning
run: pipx inject poetry "poetry-dynamic-versioning[plugin]"
- name: Update Poetry configuration
run: poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install --sync --no-interaction
- name: Package project
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1