mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
refactor: Remove core calls
This commit is contained in:
parent
aaf8a90973
commit
48d2e5e4e0
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)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user