Skip to content

Build and Deploy

Build and Deploy #270

Workflow file for this run

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