summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKasra Bigdeli <[email protected]>2019-12-24 16:38:35 -0500
committerKasra Bigdeli <[email protected]>2019-12-24 16:38:35 -0500
commitbc883c7805104968b41910880ce07712cf0ee50b (patch)
treecb99b2bb6c3061315b5b693fd90ae7e140e48de7
parent335391d1de02e060e19938ba424c9aac73870b63 (diff)
downloadcaprover-one-click-apps-bc883c7805104968b41910880ce07712cf0ee50b.tar.gz
caprover-one-click-apps-bc883c7805104968b41910880ce07712cf0ee50b.zip
updated
-rw-r--r--build_one_click_apps.js (renamed from npm_run_puplish.js)9
-rw-r--r--package.json3
2 files changed, 2 insertions, 10 deletions
diff --git a/npm_run_puplish.js b/build_one_click_apps.js
index 0fbd4fb..48c8594 100644
--- a/npm_run_puplish.js
+++ b/build_one_click_apps.js
@@ -1,5 +1,4 @@
/*jshint esversion: 6 */
- const ghPages = require('gh-pages');
const path = require('path');
const fs = require('fs-extra')
@@ -65,14 +64,6 @@
.then(function () {
return copyVersion(2)
})
- .then(function () {
- ghPages.publish('public', function (err) {
- if (err)
- console.log(err);
- else
- console.log('Built and deployed successfully');
- });
- })
.catch(function (err) {
console.error(err)
}) \ No newline at end of file
diff --git a/package.json b/package.json
index a0872bf..8d6ec3b 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "One Click App Repository for CapRover",
"main": "build_and_publish_to_github_pages.js",
"scripts": {
- "publish": "node ./npm_run_puplish.js"
+ "build": "node ./build_one_click_apps.js",
+ "publish": "npm run build && ./publish-from-actions.sh"
},
"repository": {
"type": "git",