Files
primitive-type/.gitea/workflows/pypi_update.yaml
木之清泠 ff5c2ebfca
All checks were successful
Upload to PyPI / publish (push) Successful in 49s
Deploy Sphinx Docs / build-and-deploy (push) Successful in 2m17s
release: v0.1.1
Right commit.
2026-02-12 15:25:10 +08:00

32 lines
602 B
YAML

name: Upload to PyPI
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Run tests
run: uv run python -m unittest discover tests
- name: Build package
run: uv build
- name: Publish to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
run: uv publish