-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (55 loc) · 1.63 KB
/
build.yml
File metadata and controls
67 lines (55 loc) · 1.63 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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: build
on:
push:
branches:
- main
permissions: write-all
jobs:
build:
if: github.repository == 'my-mcp-hub/mcp-kit'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup PNPM
uses: ./.github/actions/setup-pnpm
with:
node-version: 22
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Build Package
run: pnpm run build
- name: Test Package
run: pnpm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
doc:
if: github.repository == 'my-mcp-hub/mcp-kit'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup PNPM
uses: ./.github/actions/setup-pnpm
with:
node-version: 22
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Build Docs Package
run: pnpm run docs:build
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/dist
- name: Get the content of algolia.json as config
id: algolia_config
run: echo "config=$(cat docs/crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
- name: Push indices to Algolia
uses: signcl/docsearch-scraper-action@master
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}