forked from element-plus/element-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.02 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
name: Deploy Doc Website
on:
push:
branches:
- master
jobs:
master-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Install dependencies
run: yarn bootstrap
- name: Build Website
run: yarn website-build
- name: Build Indices
run: yarn 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: ElementPlusBot
GIT_CONFIG_EMAIL: [email protected]
COMMIT_MESSAGE: website deploy
- name: Sync
env:
TRIGGERSYNCURL: ${{ secrets.TRIGGERSYNCURL }}
run: curl "$TRIGGERSYNCURL"