Skip to content

Commit

Permalink
refactor: Remove core calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Feb 13, 2020
1 parent aaf8a90 commit 48d2e5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand All @@ -26,5 +26,6 @@ async function doDeploy () {
}

doDeploy().catch(err => {
console.error(err)
core.setFailed(err.message)
})

0 comments on commit 48d2e5e

Please sign in to comment.