MCPcopy
hub / github.com/codeceptjs/CodeceptJS / publishSite

Function publishSite

runok.cjs:427–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425 },
426
427 async publishSite() {
428 // updates codecept.io website
429 await processChangelog()
430 await this.wiki()
431
432 const dir = 'website'
433 if (fs.existsSync(dir)) {
434 await exec(`rm -rf ${dir}`)
435 }
436
437 await git(fn => fn.clone('git@github.com:codeceptjs/website.git', dir))
438 await copy('docs', 'website/docs')
439
440 await chdir(dir, async () => {
441 stopOnFail(false)
442 await git(fn => {
443 fn.add('-A')
444 fn.commit('-m "synchronized with docs"')
445 fn.pull()
446 fn.push()
447 })
448 stopOnFail(true)
449
450 await exec('./runok.js publish')
451 })
452 },
453
454 async server() {
455 // run test server. Warning! PHP required!

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
processChangelogFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected