All of them targeted Node 20, which the runners now force onto Node 24. Two nested ones came along with their parents: actions/upload-artifact inside upload-pages-artifact, and actions/github-script inside codecov-action. setup-uv v10 disables the cache under enable-cache: auto for release, workflow_run and pull_request_target. Every job that caches passes enable-cache: true explicitly, so none of them lose it.
22 lines
629 B
YAML
22 lines
629 B
YAML
name: Build & publish haiku.rag-slim to pypi
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: astral-sh/setup-uv@v10.0.1
|
|
with:
|
|
enable-cache: true
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version-file: "pyproject.toml"
|
|
- name: Build haiku.rag-slim
|
|
run: uv build --package haiku.rag-slim
|
|
- name: Publish haiku.rag-slim
|
|
run: uvx twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN_SLIM }} dist/* --non-interactive
|