-
Notifications
You must be signed in to change notification settings - Fork 314
81 lines (69 loc) · 2.12 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build and Deploy
on:
workflow_dispatch: {}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Prepare workspace
run: mkdir tmp-workspace
- name: Install ECharts WWW
working-directory: tmp-workspace
run: |
git clone --depth 1 https://github.com/apache/echarts-www
cd echarts-www
npm install
- name: Install ECharts Doc
working-directory: tmp-workspace
run: |
git clone --depth 1 https://github.com/apache/echarts-doc
cd echarts-doc
npm install
- name: Install ECharts Example
working-directory: tmp-workspace
run: |
git clone --depth 1 https://github.com/apache/echarts-examples
cd echarts-examples
npm install --force
- name: Install ECharts Theme Builder
working-directory: tmp-workspace
run: |
git clone --depth 1 https://github.com/apache/echarts-theme-builder
cd echarts-theme-builder
npm install
- name: Install ECharts Handbook
working-directory: tmp-workspace
run: |
git clone --depth 1 https://github.com/apache/echarts-handbook
cd echarts-handbook
npm install
- name: Build 🔧
working-directory: tmp-workspace
run: |
mkdir echarts-website
cd echarts-www
npm run release
- name: Install Dep
run: npm install
- name: Deploy 🚀
uses: ./node_modules/@jamesives/github-pages-deploy-action
with:
branch: asf-site
folder: tmp-workspace/echarts-website
single-commit: false
git-config-name: ${{env.GITHUB_ACTOR}}
clean: true
clean-exclude: |
.*
v4/**/*
README.md
package.json
doap_ECharts.rdf
favicon.ico