chore(vue-cesium): 🔨 update #187
This file contains 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: Deploy Doc Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.com/ | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 8.4.0 | |
- name: Install dependencies | |
run: pnpm i | |
- 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' |