You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by cd...@apache.org on 2018/12/20 13:47:37 UTC
[incubator-iotdb-website] branch master updated: First try to
actually deploy ...
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb-website.git
The following commit(s) were added to refs/heads/master by this push:
new 409c579 First try to actually deploy ...
409c579 is described below
commit 409c5791e4cb53ed2086a1a06e286c83e16126ff
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Dec 20 14:47:22 2018 +0100
First try to actually deploy ...
---
Jenkinsfile | 3 +--
build/deploy.js | 25 +++++++++++++++++++++++++
package.json | 4 +++-
3 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 34ecaf3..5a5ac1f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -53,8 +53,7 @@ pipeline {
steps {
echo 'Deploying'
// Deploy the artifacts using the wagon-maven-plugin.
- //Commented out for now ...
- //sh ''
+ sh 'npm run deploy'
}
}
}
diff --git a/build/deploy.js b/build/deploy.js
new file mode 100644
index 0000000..58e8813
--- /dev/null
+++ b/build/deploy.js
@@ -0,0 +1,25 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+var ghpages = require('gh-pages');
+
+ghpages.publish('dist', {
+ branch: 'asf-site-sav',
+ repo: 'https://gitbox.apache.org/repos/asf/incubator-iotdb.git'
+}, callback);
diff --git a/package.json b/package.json
index f2dbde1..da88f73 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,8 @@
"start": "npm run dev",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"test": "npm run unit",
- "build": "node build/build.js"
+ "build": "node build/build.js",
+ "deploy": "node build/deploy.js"
},
"dependencies": {
"popper.js": "^1.14.6",
@@ -36,6 +37,7 @@
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
+ "gh-pages": "^2.0.1",
"html-webpack-plugin": "^2.30.1",
"inject-loader": "^3.0.0",
"jquery": "^3.3.1",