Skip to content
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2a04bdc
feat(sdks): fold SDK monorepo in-tree under sdks/
danielpaulus Aug 11, 2026
ea4b0ea
ci(sdks): add consolidated dispatch-only release-sdks.yml (lockstep)
danielpaulus Aug 11, 2026
a7e212f
spec(v3): model full feature-complete daemon surface (~125 ops)
danielpaulus Aug 11, 2026
1309c53
feat(mcp): add UI-automation + web-debug tools and make @go-ios/mcp p…
danielpaulus Aug 11, 2026
e98221c
feat(sdk/ts): extend TypeScript SDK to the full 125-operation surface
danielpaulus Aug 11, 2026
6676b4b
feat(python-sdk): extend to full 125-endpoint v3 surface
danielpaulus Aug 11, 2026
f249eba
feat(sdks/java): extend Java SDK to the full 125-endpoint surface
danielpaulus Aug 11, 2026
3a3699b
feat(sdk/csharp): extend GoIos.Sdk to the full 125-op surface
danielpaulus Aug 11, 2026
fa6fcee
Merge remote-tracking branch 'origin/v3/python' into worktree-agent-a…
danielpaulus Aug 11, 2026
c229101
Merge remote-tracking branch 'origin/v3/java' into worktree-agent-ad6…
danielpaulus Aug 11, 2026
3c6c521
Merge remote-tracking branch 'origin/v3/csharp' into worktree-agent-a…
danielpaulus Aug 11, 2026
703efb3
Merge remote-tracking branch 'origin/v3/mcp' into worktree-agent-ad64…
danielpaulus Aug 11, 2026
a3640bd
ci(sdks): publish @go-ios/mcp to npm; guard Java src/main against .gi…
danielpaulus Aug 11, 2026
6c228ec
docs(csharp): add runnable examples suite for GoIos.Sdk
danielpaulus Aug 11, 2026
af00b81
mcp: add runnable examples suite (docs + pre-release smoke test)
danielpaulus Aug 11, 2026
b08e7b3
docs(sdks/python): add runnable examples suite + pre-release smoke ru…
danielpaulus Aug 11, 2026
4feac50
docs(java-sdk): add runnable examples suite + pre-release smoke runner
danielpaulus Aug 11, 2026
5dd5585
docs(sdk/ts): add runnable examples suite + smoke-test runner
danielpaulus Aug 11, 2026
21346f4
Merge remote-tracking branch 'origin/examples/python' into feat/sdks-…
danielpaulus Aug 11, 2026
3c9b64e
Merge remote-tracking branch 'origin/examples/java' into feat/sdks-in…
danielpaulus Aug 11, 2026
71ad812
Merge remote-tracking branch 'origin/examples/csharp' into feat/sdks-…
danielpaulus Aug 11, 2026
08e0407
Merge remote-tracking branch 'origin/examples/mcp' into feat/sdks-in-…
danielpaulus Aug 11, 2026
97534a7
docs(sdks): add examples overview + wire pre-release verification
danielpaulus Aug 11, 2026
59317c0
feat(sdk/ts): auto-discover local go-ios REST daemon when no baseUrl
danielpaulus Aug 11, 2026
2a768f9
feat(sdk-java): auto-discover ephemeral go-ios daemon when no baseUrl
danielpaulus Aug 11, 2026
67249a4
feat(csharp-sdk): auto-discover local go-ios REST daemon (ephemeral p…
danielpaulus Aug 11, 2026
6038feb
feat(python-sdk): auto-discover local go-ios REST daemon
danielpaulus Aug 11, 2026
bf0a8a3
Merge remote-tracking branch 'origin/discovery/python' into feat/sdks…
danielpaulus Aug 11, 2026
0c0f1a8
Merge remote-tracking branch 'origin/discovery/java' into feat/sdks-i…
danielpaulus Aug 11, 2026
a1f3108
Merge remote-tracking branch 'origin/discovery/csharp' into feat/sdks…
danielpaulus Aug 11, 2026
0011671
docs(sdks): harmonize TS/Java/C# examples to auto-discover the local …
danielpaulus Aug 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
349 changes: 349 additions & 0 deletions .github/workflows/release-sdks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,349 @@
name: Release-SDKs

# Consolidated, dispatch-only release pipeline for all five go-ios SDKs
# (typescript, python, java, csharp, mcp). They are generated from ONE OpenAPI
# spec, so they ship in lockstep: a single `version` input is stamped into every
# package manifest and published to every registry together.
#
# Safety model (mirrors the CLI release.yml):
# * Dispatch only. There is no tag/push trigger, so nothing here ever runs off
# a merge. `dry_run` defaults to true.
# * All build/test happens BEFORE any upload. If a single package fails to
# build or test, no publish job runs, so a bad build ships nothing.
# * Every real upload is gated twice:
# 1. `if: ${{ !inputs.dry_run }}` — a dry run does a real dry-run instead
# (npm --dry-run, twine check, mvn verify, dotnet pack) with NO upload.
# 2. a secret/trust-presence guard — even a non-dry run SKIPS the upload,
# with a clear log line, when the registry isn't armed yet. This makes
# the first real run safe to do before the registries exist.
# * The git tag + GitHub release are created only after every publish job
# succeeds AND it was not a dry run.
#
# Auth (see sdks/docs/RELEASING.md for the registry prerequisites):
# * npm — OIDC trusted publishing (id-token: write, provenance). NO token.
# * PyPI — trusted publishing via pypa/gh-action-pypi-publish (id-token).
# * Maven — central-publishing-maven-plugin + GPG (MAVEN_GPG_PRIVATE_KEY,
# MAVEN_GPG_PASSPHRASE, CENTRAL_TOKEN_USERNAME, CENTRAL_TOKEN_PASSWORD).
# * NuGet — dotnet nuget push with NUGET_API_KEY.

on:
workflow_dispatch:
inputs:
version:
description: "SDK version to release (semver, e.g. 0.1.0). Stamped into all five package manifests."
required: true
type: string
dry_run:
description: "Dry run: build/test + real dry-run of every publish, but upload nothing and create no tag/release."
required: true
default: true
type: boolean

permissions:
contents: read

jobs:
# --- Stamp the version into every manifest and hand the tree to build jobs ---
prepare:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.setv.outputs.version }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"

- name: Stamp version into all package manifests
id: setv
run: |
set -euo pipefail
bash sdks/scripts/set-version.sh "${{ inputs.version }}"
echo "version=${{ inputs.version }}" >> "$GITHUB_OUTPUT"

- name: Upload version-stamped sdks tree
uses: actions/upload-artifact@v4
with:
name: sdks-stamped
path: sdks/
include-hidden-files: true
retention-days: 1

# ----------------------------- BUILD + TEST -------------------------------
# Mirrors sdks.yml. All five must pass before any publish job starts.
build-typescript:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-node@v4
with: { node-version: "22" }
- name: build + test (typescript)
working-directory: sdks/packages/typescript
run: |
npm ci
npx tsc --noEmit
npm run build
npm test

build-mcp:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-node@v4
with: { node-version: "22" }
- name: build + test (mcp)
working-directory: sdks/packages/mcp
run: |
npm ci
npx tsc --noEmit
npm run build
npm test

build-python:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: build + test (python)
working-directory: sdks/packages/python
run: |
uv python install 3.13
uv sync --all-extras --dev
uv run pytest
uv run mypy src/go_ios_sdk --exclude '_generated'

build-csharp:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-dotnet@v4
with: { dotnet-version: "8.0.x" }
- name: build + test (csharp)
working-directory: sdks/packages/csharp
run: |
dotnet build -c Release
dotnet test -c Release --no-build

build-java:
needs: prepare
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-java@v4
with: { distribution: temurin, java-version: "17" }
- name: build + test (java)
working-directory: sdks/packages/java
run: bash scripts/verify.sh

# ------------------------------- PUBLISH ----------------------------------
# Each ecosystem publishes independently, but only after ALL builds pass.
# dry_run -> real dry-run (no upload). Non-dry -> real upload, still guarded
# by a registry-armed check so it self-skips until the registry is configured.

publish-npm:
needs: [prepare, build-typescript, build-mcp, build-python, build-csharp, build-java]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # OIDC trusted publishing / provenance. NO token.
env:
NPM_CONFIG_PROVENANCE: "true"
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
# OIDC trusted publishing needs Node >= 22.14 and npm >= 11.5.1.
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Prepare npm + build (typescript)
working-directory: sdks/packages/typescript
run: |
npm install -g npm@latest
npm ci
npm run build
# Dry run: exercises packing/publish end to end without uploading.
- name: npm publish --dry-run (dry_run)
if: ${{ inputs.dry_run }}
working-directory: sdks/packages/typescript
run: npm publish --dry-run --access public
# Real publish. OIDC is only available when id-token is issued for this
# run (ACTIONS_ID_TOKEN_REQUEST_URL is set). If it isn't — e.g. the org /
# trusted publisher isn't configured yet — skip loudly instead of failing.
- name: npm publish (OIDC)
if: ${{ !inputs.dry_run }}
working-directory: sdks/packages/typescript
run: |
set -euo pipefail
if [ -z "${ACTIONS_ID_TOKEN_REQUEST_URL:-}" ]; then
echo "::warning::npm OIDC context not available — skipping real npm publish. Configure the @go-ios org + OIDC trusted publisher first (see sdks/docs/RELEASING.md)."
exit 0
fi
# No NODE_AUTH_TOKEN / .npmrc auth line: npm authenticates via OIDC
# trusted publishing. Any (even empty) token would break OIDC.
npm publish --access public
# @go-ios/mcp ships to npm alongside the TypeScript SDK (same OIDC trusted
# publishing + provenance). Guarded identically to the TS publish above.
- name: Prepare + build (mcp)
working-directory: sdks/packages/mcp
run: |
npm ci
npm run build
- name: npm publish --dry-run (mcp, dry_run)
if: ${{ inputs.dry_run }}
working-directory: sdks/packages/mcp
run: npm publish --dry-run --access public
- name: npm publish (mcp, OIDC)
if: ${{ !inputs.dry_run }}
working-directory: sdks/packages/mcp
run: |
set -euo pipefail
if [ -z "${ACTIONS_ID_TOKEN_REQUEST_URL:-}" ]; then
echo "::warning::npm OIDC context not available — skipping real @go-ios/mcp publish. Configure the @go-ios org + OIDC trusted publisher first (see sdks/docs/RELEASING.md)."
exit 0
fi
# No NODE_AUTH_TOKEN / .npmrc auth line: OIDC trusted publishing only.
npm publish --access public

publish-pypi:
needs: [prepare, build-typescript, build-mcp, build-python, build-csharp, build-java]
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write # PyPI trusted publishing. NO token.
# `secrets` cannot be used in an `if:` expression, so map the trust-armed
# flag into env once and gate on env.* instead.
env:
PYPI_ARMED: ${{ secrets.PYPI_TRUSTED_PUBLISHER_CONFIGURED }}
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Build sdist + wheel
working-directory: sdks/packages/python
run: |
uv python install 3.12
uv build --sdist --wheel
# Dry run: build + metadata validation, no upload.
- name: twine check (dry_run)
if: ${{ inputs.dry_run }}
working-directory: sdks/packages/python
run: uvx twine check dist/*
# Real publish via trusted publishing. Only reached when the
# PYPI_TRUSTED_PUBLISHER_CONFIGURED repo secret is set, so the first real
# run before the trusted publisher exists self-skips.
- name: Publish to PyPI (trusted publishing)
if: ${{ !inputs.dry_run && env.PYPI_ARMED != '' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: sdks/packages/python/dist
- name: Note if PyPI publish skipped
if: ${{ !inputs.dry_run && env.PYPI_ARMED == '' }}
run: echo "::warning::PYPI_TRUSTED_PUBLISHER_CONFIGURED not set — skipping real PyPI publish. Create the PyPI project + trusted publisher, then set that repo secret (see sdks/docs/RELEASING.md)."

publish-maven:
needs: [prepare, build-typescript, build-mcp, build-python, build-csharp, build-java]
runs-on: ubuntu-latest
# `secrets` cannot be used in an `if:` expression; map the arm-check into env.
# MAVEN_ARMED is non-empty only when all three required secrets are present.
env:
MAVEN_GPG_PRIVATE_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
CENTRAL_TOKEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
CENTRAL_TOKEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_ARMED: ${{ (secrets.MAVEN_GPG_PRIVATE_KEY != '' && secrets.CENTRAL_TOKEN_USERNAME != '' && secrets.CENTRAL_TOKEN_PASSWORD != '') && 'yes' || '' }}
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
# Configure ~/.m2/settings.xml server "central" from these env-var
# secrets so the central-publishing-maven-plugin can authenticate.
server-id: central
server-username: CENTRAL_TOKEN_USERNAME
server-password: CENTRAL_TOKEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
# Dry run: full verify (compile, test, package) with NO deploy.
- name: mvn verify (dry_run — no deploy)
if: ${{ inputs.dry_run }}
working-directory: sdks/packages/java
run: mvn -B -ntp verify
# Real deploy — only when the Central token + GPG key secrets all exist.
- name: mvn deploy to Maven Central
if: ${{ !inputs.dry_run && env.MAVEN_ARMED != '' }}
working-directory: sdks/packages/java
run: mvn -B -ntp -Prelease clean deploy
- name: Note if Maven publish skipped
if: ${{ !inputs.dry_run && env.MAVEN_ARMED == '' }}
run: echo "::warning::Maven Central secrets not set (need MAVEN_GPG_PRIVATE_KEY + CENTRAL_TOKEN_USERNAME/PASSWORD) — skipping real Maven deploy (see sdks/docs/RELEASING.md)."

publish-nuget:
needs: [prepare, build-typescript, build-mcp, build-python, build-csharp, build-java]
runs-on: ubuntu-latest
# `secrets` cannot be used in an `if:` expression; map the key into env.
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- uses: actions/download-artifact@v4
with: { name: sdks-stamped, path: sdks }
- uses: actions/setup-dotnet@v4
with: { dotnet-version: "8.0.x" }
- name: Pack (Release)
working-directory: sdks/packages/csharp
run: dotnet pack src/GoIos.Sdk/GoIos.Sdk.csproj --configuration Release --output ../../artifacts
# dotnet pack above IS the dry-run artifact build; nothing to upload on dry.
- name: Note (dry_run — packed, not pushed)
if: ${{ inputs.dry_run }}
run: 'echo "dry_run: packed nupkg but not pushing to NuGet."'
- name: Push to NuGet
if: ${{ !inputs.dry_run && env.NUGET_API_KEY != '' }}
run: |
dotnet nuget push "sdks/artifacts/*.nupkg" \
--api-key "$NUGET_API_KEY" \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate
- name: Note if NuGet publish skipped
if: ${{ !inputs.dry_run && env.NUGET_API_KEY == '' }}
run: echo "::warning::NUGET_API_KEY not set — skipping real NuGet push. Create the package id + NUGET_API_KEY secret (see sdks/docs/RELEASING.md)."

# ------------------------- TAG + GITHUB RELEASE ---------------------------
# Only after every publish job succeeds AND this was not a dry run. This is the
# single mutating step against the repo, so an earlier failure leaves no tag.
tag-and-release:
needs: [prepare, publish-npm, publish-pypi, publish-maven, publish-nuget]
if: ${{ !inputs.dry_run }}
runs-on: ubuntu-latest
permissions:
contents: write
env:
VERSION: ${{ needs.prepare.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Create SDK tag + GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag "sdk-v${VERSION}"
git push origin "sdk-v${VERSION}"
gh release create "sdk-v${VERSION}" \
--title "SDKs v${VERSION}" \
--notes "go-ios SDKs v${VERSION} (typescript, python, java, csharp; mcp bundled). Lockstep release generated from sdks/spec/openapi/openapi.yaml."
Loading
Loading