Skip to content

docs: 📝 updated docs #168

docs: 📝 updated docs

docs: 📝 updated docs #168

Workflow file for this run

name: Deploy Doc Website
on:
push:
branches:
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.com/
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.4.0
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build Website
run: pnpm website-build
- name: Build Indices
run: pnpm build:indices
env:
ALGOLIA_KEY: ${{secrets.ALGOLIA_KEY}}
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: website-dist
GIT_CONFIG_NAME: zouyaoji
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: website deploy
- name: Sync to Gitee
uses: x-dr/[email protected]
env:
# 在 Settings->Secrets 配置 GITEE_KEY
SSH_KEY: ${{ secrets.GITEE_KEY }}
with:
# 注意替换为你的 GitHub 源仓库地址
github-repo: '[email protected]:zouyaoji/vue-cesium.git'
# 注意替换为你的 Gitee 目标仓库地址
gitee-repo: '[email protected]:zouyaoji/vue-cesium.git'