- scripts/build_openclaw.py:SKILL.md 转换({skill_dir}→{baseDir}、WebSearch→web_search、移除 allowed-tools)
- .github/workflows/build-openclaw.yml:push to main 时自动构建 dist/openclaw/
- dist/openclaw/:首次构建产物入库,OpenClaw 用户可直接使用
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
918 B
YAML
38 lines
918 B
YAML
name: Build OpenClaw Skill
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'SKILL.md'
|
|
- 'references/**'
|
|
- 'scripts/**'
|
|
- 'toolkit/**'
|
|
- 'personas/**'
|
|
- 'requirements.txt'
|
|
- '*.example.yaml'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Build OpenClaw skill
|
|
run: python3 scripts/build_openclaw.py
|
|
|
|
- name: Commit dist/openclaw if changed
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add dist/openclaw/
|
|
if git diff --cached --quiet; then
|
|
echo "No changes to commit"
|
|
else
|
|
git commit -m "chore: rebuild dist/openclaw from source"
|
|
git push
|
|
fi
|