Skip to content

v0.2.0 — two projections + the lokf new scaffolder #2

v0.2.0 — two projections + the lokf new scaffolder

v0.2.0 — two projections + the lokf new scaffolder #2

Workflow file for this run

name: publish
# Publishes to PyPI via Trusted Publishing (OIDC) when a GitHub Release is
# published — no API token is stored. Configure the trusted publisher once on
# PyPI: project "lokf", owner "nicholsn", repo "lokf", workflow "publish.yml",
# environment "pypi".
on:
release:
types: [published]
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Test (gate the release)
run: uv run --group dev pytest -q
- name: Build sdist + wheel
run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/lokf/
permissions:
id-token: write # OIDC token for Trusted Publishing
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1