-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (47 loc) · 1.3 KB
/
publish-skills.yml
File metadata and controls
54 lines (47 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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: Authenticate
run: clawhub login --token "${{ secrets.CLAWHUB_TOKEN }}" --no-browser
- name: Publish
run: bash scripts/ci-publish.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_SKILL: ${{ github.event.inputs.skill || '' }}
PUBLISH_FORCE: ${{ github.event.inputs.force || 'false' }}