CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
72 lines
2.2 KiB
YAML
72 lines
2.2 KiB
YAML
#
|
|
# This file is intentionally in the wrong dir, will move and add later....
|
|
#
|
|
|
|
# name: publish-python-sdk
|
|
|
|
# on:
|
|
# release:
|
|
# types: [published]
|
|
# workflow_dispatch:
|
|
|
|
# jobs:
|
|
# publish:
|
|
# runs-on: ubuntu-latest
|
|
# permissions:
|
|
# contents: read
|
|
# steps:
|
|
# - name: Checkout repository
|
|
# uses: actions/checkout@v4
|
|
|
|
# - name: Setup Bun
|
|
# uses: oven-sh/setup-bun@v1
|
|
# with:
|
|
# bun-version: 1.2.21
|
|
|
|
# - name: Install dependencies (JS/Bun)
|
|
# run: bun install
|
|
|
|
# - name: Install uv
|
|
# shell: bash
|
|
# run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
# - name: Generate Python SDK from OpenAPI (CLI)
|
|
# shell: bash
|
|
# run: |
|
|
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/generate.py --source cli
|
|
|
|
# - name: Sync Python dependencies
|
|
# shell: bash
|
|
# run: |
|
|
# ~/.local/bin/uv sync --dev --project packages/sdk/python
|
|
|
|
# - name: Set version from release tag
|
|
# shell: bash
|
|
# run: |
|
|
# TAG="${GITHUB_REF_NAME:-}"
|
|
# if [ -z "$TAG" ]; then
|
|
# TAG="$(git describe --tags --abbrev=0 || echo 0.0.0)"
|
|
# fi
|
|
# echo "Using version: $TAG"
|
|
# VERSION="$TAG" ~/.local/bin/uv run --project packages/sdk/python python - <<'PY'
|
|
# import os, re, pathlib
|
|
# root = pathlib.Path('packages/sdk/python')
|
|
# pt = (root / 'pyproject.toml').read_text()
|
|
# version = os.environ.get('VERSION','0.0.0').lstrip('v')
|
|
# pt = re.sub(r'(?m)^(version\s*=\s*")[^"]+("\s*)$', f"\\1{version}\\2", pt)
|
|
# (root / 'pyproject.toml').write_text(pt)
|
|
# # Also update generator config override for consistency
|
|
# cfgp = root / 'openapi-python-client.yaml'
|
|
# if cfgp.exists():
|
|
# cfg = cfgp.read_text()
|
|
# cfg = re.sub(r'(?m)^(package_version_override:\s*)\S+$', f"\\1{version}", cfg)
|
|
# cfgp.write_text(cfg)
|
|
# PY
|
|
|
|
# - name: Build and publish to PyPI
|
|
# env:
|
|
# PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
# shell: bash
|
|
# run: |
|
|
# ~/.local/bin/uv run --project packages/sdk/python python packages/sdk/python/scripts/publish.py
|