Merge pull request #11 from YouMind-OpenLab/hotfix/change-wechat-version #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' }} |