Skip to content

pypi-publish

pypi-publish #5

Workflow file for this run

on:
workflow_dispatch:
release:
types: [published]
name: pypi-publish
env:
PYTHONUNBUFFERED: "1"
UV_SYSTEM_PYTHON: 1
jobs:
pypi-publish:
name: pypi-publish
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/assesspy
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install Python dependencies
run: uv pip install .
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- name: Build Python dist
run: uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1