erratic-gate/deploy.ts

16 lines
361 B
TypeScript
Raw Normal View History

2019-05-27 19:29:29 +02:00
import { publish } from "gh-pages"
console.log("Deploying...");
(async () => {
await new Promise((res, rej) => {
console.log("Updating github pages")
publish("dist", (err) => {
if (err)
rej(err)
console.log(`😄 Succesfully published to github pages`)
res(true)
})
})
})()