add post
This commit is contained in:
1 parent
13647c0715
commit
2520f7ccf1
7 files changed
+1124
-584
No files matched your search
@@ -0,0 +1,21 @@
|
||||
const ghPages = require("gh-pages");
|
||||
const fs = require("fs");
|
||||
const {spawnSync} = require("child_process");
|
||||
const rimraf = require("rimraf");
|
||||
|
||||
rimraf.sync("node_modules/gh-pages/.cache")
|
||||
|
||||
spawnSync("cogear", ["build"], {
|
||||
stdio: "inherit"
|
||||
});
|
||||
|
||||
fs.writeFileSync("public/index.php", "<?php header( 'Location: /index.html' ) ; ?>");
|
||||
|
||||
ghPages.publish("public", {
|
||||
branch: "master",
|
||||
repo: "https://git.heroku.com/zhdiary.git"
|
||||
}, (err) => {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user