-
-
Notifications
You must be signed in to change notification settings - Fork 331
57 lines (49 loc) · 1.47 KB
/
master-deploy.yml
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
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'