Skip to content

Version 21.0.0

Version 21.0.0 #35

Workflow file for this run

name: Publish
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10.x
- name: Upgrade pip
run: pip install --upgrade --user pip
- name: Install uv
run: pip install uv
- name: Cache virtual environment
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{ hashFiles('**/uv.lock') }}
- name: Install dependencies
run: uv pip install --system --group dev
- name: Build and validate
run: |
uv run task minify
uv build
uv run twine check --strict dist/*
- name: Publish
env:
# https://python-poetry.org/docs/repositories/#configuring-credentials
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
run: |
uv publish