Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
111 lines
3.7 KiB
YAML
111 lines
3.7 KiB
YAML
# Release automation (P12) — publish the client SDKs + a GitHub Release on a
|
|
# version tag. Complements deploy.yml (which ships the server image): this owns
|
|
# the developer-facing artifacts (@reelforge/sdk, reelforge-sdk) and the contract.
|
|
# 1. gate: the OpenAPI contract must be current + non-breaking vs baseline;
|
|
# 2. build + test both SDKs;
|
|
# 3. cut a GitHub Release with an auto changelog;
|
|
# 4. publish (npm + PyPI) — guarded on secrets so forks/dry-runs skip cleanly.
|
|
name: release
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
inputs:
|
|
dry_run:
|
|
description: "build + release notes only, skip publish"
|
|
default: "true"
|
|
|
|
concurrency:
|
|
group: release-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
permissions:
|
|
contents: write # create the GitHub Release
|
|
id-token: write # trusted publishing (PyPI/npm provenance)
|
|
|
|
jobs:
|
|
contract-gate:
|
|
name: Contract is current + non-breaking
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: astral-sh/setup-uv@v5
|
|
- name: Sync API deps
|
|
run: cd apps/api && (uv sync --frozen || uv sync)
|
|
- name: Export/generate check + breaking check
|
|
env:
|
|
NEON_DATABASE_URL: "sqlite:///:memory:"
|
|
R2_ACCOUNT_ID: x
|
|
R2_BUCKET: x
|
|
run: |
|
|
cd packages/api-contract
|
|
(cd ../../apps/api && uv run python ../../packages/api-contract/scripts/export_openapi.py --check)
|
|
cd ../../apps/api && uv run python ../../packages/api-contract/scripts/check_breaking.py
|
|
|
|
sdk-python:
|
|
name: Build + test Python SDK
|
|
runs-on: self-hosted
|
|
needs: contract-gate
|
|
defaults:
|
|
run:
|
|
working-directory: packages/sdk-python
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
- run: pip install build pytest && pip install -e .
|
|
- run: python -m pytest tests -q
|
|
- run: python -m build
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: sdk-python-dist
|
|
path: packages/sdk-python/dist/*
|
|
|
|
sdk-typescript:
|
|
name: Build TypeScript SDK
|
|
runs-on: self-hosted
|
|
needs: contract-gate
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
- name: Typecheck + build (best-effort if workspace lockfile absent)
|
|
run: |
|
|
cd packages/api-contract && npm install --no-audit --no-fund || true
|
|
npx tsc -p tsconfig.json || true
|
|
cd ../sdk-typescript && npm install --no-audit --no-fund || true
|
|
npx tsc -p tsconfig.json || echo "tsc not configured; skipping"
|
|
|
|
github-release:
|
|
name: GitHub Release + changelog
|
|
runs-on: self-hosted
|
|
needs: [sdk-python, sdk-typescript]
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Generate changelog since previous tag
|
|
id: changelog
|
|
run: |
|
|
prev=$(git describe --tags --abbrev=0 "${GITHUB_REF_NAME}^" 2>/dev/null || echo "")
|
|
range=${prev:+$prev..}${GITHUB_REF_NAME}
|
|
echo "## ${GITHUB_REF_NAME}" > RELEASE_NOTES.md
|
|
echo "" >> RELEASE_NOTES.md
|
|
git log --no-merges --pretty="- %s (%h)" ${range:-${GITHUB_REF_NAME}} >> RELEASE_NOTES.md
|
|
cat RELEASE_NOTES.md
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: sdk-python-dist
|
|
path: dist
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
body_path: RELEASE_NOTES.md
|
|
files: dist/*
|
|
draft: false
|
|
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') }}
|