MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / publishSite

Function publishSite

Bunoshfile.js:422–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 * Update the codecept.io website: regenerate changelog, sync wiki, push docs and publish.
421 */
422export 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!

Callers 1

releaseFunction · 0.70

Calls 2

processChangelogFunction · 0.70
wikiFunction · 0.70

Tested by

no test coverage detected