mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-03-29 01:31:35 +00:00
refactor: Remove core calls
This commit is contained in:
5
index.js
5
index.js
@@ -14,10 +14,10 @@ async function doDeploy () {
|
|||||||
|
|
||||||
const client = new Neocities(token)
|
const client = new Neocities(token)
|
||||||
|
|
||||||
const stats = await core.group('Deploying to neocities', client.deploy(distDir, {
|
const stats = await client.deploy(distDir, {
|
||||||
cleanup,
|
cleanup,
|
||||||
statsCb: Neocities.statsHandler()
|
statsCb: Neocities.statsHandler()
|
||||||
}))
|
})
|
||||||
|
|
||||||
console.log(`Deployed to Neocities in ${prettyTime([0, stats.time])}:`)
|
console.log(`Deployed to Neocities in ${prettyTime([0, stats.time])}:`)
|
||||||
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
console.log(` Uploaded ${stats.filesToUpload.length} files`)
|
||||||
@@ -26,5 +26,6 @@ async function doDeploy () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
doDeploy().catch(err => {
|
doDeploy().catch(err => {
|
||||||
|
console.error(err)
|
||||||
core.setFailed(err.message)
|
core.setFailed(err.message)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user