()
| 420 | * Update the codecept.io website: regenerate changelog, sync wiki, push docs and publish. |
| 421 | */ |
| 422 | export async function publishSite() { |
| 423 | await processChangelog() |
| 424 | await wiki() |
| 425 | |
| 426 | const dir = 'website' |
| 427 | if (fs.existsSync(dir)) { |
| 428 | await shell`rm -rf ${dir}` |
| 429 | } |
| 430 | |
| 431 | await shell`git clone git@github.com:codeceptjs/website.git ${dir}` |
| 432 | copyFile('docs', 'website/docs') |
| 433 | |
| 434 | await shell`git add -A`.cwd(dir) |
| 435 | await shell`git commit -m "synchronized with docs"`.cwd(dir) |
| 436 | await shell`git pull`.cwd(dir) |
| 437 | await shell`git push`.cwd(dir) |
| 438 | await shell`./runok.js publish`.cwd(dir) |
| 439 | } |
| 440 | |
| 441 | /** |
| 442 | * Run the PHP test app and the REST test server together. Warning! PHP required! |
no test coverage detected