Skip to content

publish to pypi

publish to pypi #5

Workflow file for this run

name: publish to pypi
on:
release:
types: [published]
jobs:
publish:
name: publish package to pypI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Build and publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
run: |
uv sync --frozen
uv run ruff check
uv run pytest -s tests/
uv build
uv publish