refactor: Remove core calls

This commit is contained in:
Bret Comnes 2020-02-13 11:39:13 -07:00
parent aaf8a90973
commit 48d2e5e4e0
No known key found for this signature in database
GPG Key ID: 3705F4634DC3A1AC

View File

@ -14,10 +14,10 @@ async function doDeploy () {
const client = new Neocities(token)
const stats = await core.group('Deploying to neocities', client.deploy(distDir, {
const stats = await client.deploy(distDir, {
cleanup,
statsCb: Neocities.statsHandler()
}))
})
console.log(`Deployed to Neocities in ${prettyTime([0, stats.time])}:`)
console.log(` Uploaded ${stats.filesToUpload.length} files`)
@ -26,5 +26,6 @@ async function doDeploy () {
}
doDeploy().catch(err => {
console.error(err)
core.setFailed(err.message)
})