1 | #!/usr/bin/env node
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | 'use strict'
|
8 |
|
9 | process.chdir(`${__dirname}/..`)
|
10 |
|
11 | const apeTasking = require('ape-tasking')
|
12 | const childProcess = require('child_process')
|
13 | const co = require('co')
|
14 | const apeDeploying = require('../lib')
|
15 |
|
16 | apeTasking.runTasks('deploy', [
|
17 | () => co(function * () {
|
18 | let url = String(childProcess.execSync('git config --get remote.origin.url')).trim()
|
19 | return yield apeDeploying.deployGhWiki('doc/wiki', url.replace(/\.git$/, '.wiki.git'))
|
20 | })
|
21 | ], true)
|