This repository has been archived by the owner on Apr 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rx-util.rxliuli.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// 发布文档到 git-pages | ||
const exec = require('child_process').execSync | ||
console.log('Start Deploy github pages...') | ||
|
||
const cmds = [ | ||
'yarn docs', | ||
'yarn coverage', | ||
'cp CNAME docs/', | ||
'git subtree push --prefix=docs origin gh-pages', | ||
'rm -rf docs/' | ||
] | ||
|
||
cmds.forEach(cmd => { | ||
try { | ||
const stdout = exec(cmd) | ||
console.log(stdout.toString()) | ||
} catch (err) { | ||
console.error(err) | ||
console.error('Deploy github pages failed') | ||
throw err | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters