This is an automated email from the ASF dual-hosted git repository.

cnryb pushed a commit to branch ci
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git


The following commit(s) were added to refs/heads/ci by this push:
     new c534e62  Add files via upload
c534e62 is described below

commit c534e624da22f2f08416d77e31fc6f603e3f1a48
Author: 任跃兵 <[email protected]>
AuthorDate: Thu Nov 5 22:18:02 2020 +0800

    Add files via upload
---
 scripts/build.sh | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/scripts/build.sh b/scripts/build.sh
new file mode 100644
index 0000000..ab71ba7
--- /dev/null
+++ b/scripts/build.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# source build
+rm -rf node_modules
+npm install
+npm run build
+
+# pulish to apache/asf-site
+rm -rf .deploy_git
+mkdir .deploy_git
+cd .deploy_git
+# git init
+# git remote add apache [email protected]:apache/incubator-weex-site.git
+# git fetch apache asf-site
+# git reset apache/asf-site
+mv ../docs/.vuepress/dist/* ./
+echo move to deploy_git successful
+rm -rf ./zh/community/biz-emas.html
+echo remove biz-emas.html
+node ../scripts/generate-redirect-html.js
+echo generate redirect html
+node ../scripts/generate-htaccess-file.js
+echo generate htaccess file
+# DATE=`date '+%Y-%m-%d %H:%M:%S'`
+# git add -A
+# git commit -m "Site updated: ${DATE}"
+# git checkout apache/asf-site -b asf-site
+# git merge master
+# git push apache asf-site

Reply via email to