Skip to content

feat: add Clore docs #32

feat: add Clore docs

feat: add Clore docs #32

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies
run: npm install
- name: Clone & Copy Clice
shell: bash
run: |
git clone https://github.com/clice-io/clice.git
cp -rf clice/docs/en en/clice
cp -rf clice/docs/zh zh/clice
- name: Clone & Copy Catter
shell: bash
run: |
git clone https://github.com/clice-io/catter.git
cp -rf catter/doc en/catter
cp -rf catter/doc zh/catter
cp catter/README.md en/catter/index.md
cp catter/README.md zh/catter/index.md
- name: Clone & Copy Clore
shell: bash
run: |
git clone https://github.com/clice-io/clore.git
cp -rf clore/docs/en en/clore
cp -rf clore/docs/zh zh/clore
- name: Build
run: npm run build
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .vitepress/dist
keep_files: true