Skip to content

Merge pull request #11 from YouMind-OpenLab/hotfix/change-wechat-version #5

Merge pull request #11 from YouMind-OpenLab/hotfix/change-wechat-version

Merge pull request #11 from YouMind-OpenLab/hotfix/change-wechat-version #5

name: Publish Skills to ClawHub
on:
push:
branches: [main]
paths:
- 'skills/**'
workflow_dispatch:
inputs:
skill:
description: 'Skill to publish'
required: true
type: choice
options:
- youmind
- youmind-blog-cover
- youmind-deep-research
- youmind-image-generator
- youmind-slides-generator
- youmind-web-clipper
- youmind-webpage-generator
- youmind-wechat-article
- youmind-youtube-transcript
force:
description: 'Force publish (skip version check)'
required: false
type: boolean
default: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install ClawHub CLI
run: npm install -g clawhub
- name: Publish
run: bash scripts/ci-publish.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }}
YOUMIND_CLAWHUB_TOKEN: ${{ secrets.YOUMIND_CLAWHUB_TOKEN }}
PUBLISH_SKILL: ${{ github.event.inputs.skill || '' }}
PUBLISH_FORCE: ${{ github.event.inputs.force || 'false' }}