You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/07/29 11:46:41 UTC
[echarts-website] 01/03: add deploy action
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/echarts-website.git
commit 211bd680bef1d2943ff951ca2ec0a8fc0b34e2ed
Author: pissang <bm...@gmail.com>
AuthorDate: Thu Jul 29 18:19:31 2021 +0800
add deploy action
---
.github/workflows/deploy.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++
package.json | 16 +++++++++++
2 files changed, 84 insertions(+)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..1da53ab
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,68 @@
+name: Build and Deploy
+
+on:
+ workflow_dispatch: {}
+
+jobs:
+ build-and-deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2
+
+ - 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
+
+ - 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: Deploy 🚀
+ uses: ./node_modules/@jamesives/github-pages-deploy-action
+ with:
+ branch: asf-site
+ folder: tmp-workspace/echarts-website
+ single-commit: false
+ clean: true
+ clean-exclude: |
+ .*
+ v4/**/*
+ README.md
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..4cb37ee
--- /dev/null
+++ b/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "echarts-website",
+ "version": "1.0.0",
+ "description": "",
+ "scripts": {
+ },
+ "devDependencies": {
+ "@jamesives/github-pages-deploy-action": "^4.1.3",
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/apache/echarts-website.git"
+ },
+ "author": "",
+ "license": "ISC"
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org