Skip to content

Bump spu version to 0.10.0.dev20251211 (#1353) #58

Bump spu version to 0.10.0.dev20251211 (#1353)

Bump spu version to 0.10.0.dev20251211 (#1353) #58

Workflow file for this run

# Copyright 2025 Ant Group Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Publish Docs
on:
push:
branches:
- main
tags:
- "*"
workflow_dispatch:
inputs:
dry_run:
description: "Run in dry-run mode"
required: false
default: "true"
type: boolean
jobs:
check-docs:
name: check docs
runs-on: [ubuntu-latest]
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
- name: publish docs
run: |
uv venv --python=3.11
source .venv/bin/activate
uv pip install spu --prerelease=allow
uv pip install -r docs/requirements.txt
secretflow-doctools build --lang zh_CN --lang en
secretflow-doctools publish \
--name @secretflow/x-spu \
--index-js docs/_build/esm/index.js
env:
DRY_RUN: ${{ github.event_name == 'push' && '0' || (github.event.inputs.dry_run == 'false' && '0' || '1') }}
DOCTOOLS_PUBLISH_NPM_TOKEN: ${{secrets.DOCTOOLS_PUBLISH_NPM_TOKEN}}