Build and Deploy #271
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: 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 |