mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-23 09:41:13 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fad2c4a165 | ||
|
|
1638c39428 | ||
|
|
c50fdeb3e6 | ||
|
|
48d2e5e4e0 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
|
## [v0.0.8](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.7...v0.0.8) - 2020-02-13
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- chore: update async-neocities to 1.1.3 [`1638c39`](https://github.com/bcomnes/deploy-to-neocities/commit/1638c394287dcf61bcf439a387dbefc2e68b2128)
|
||||||
|
|
||||||
|
## [v0.0.7](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.6...v0.0.7) - 2020-02-13
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- refactor: Remove core calls [`48d2e5e`](https://github.com/bcomnes/deploy-to-neocities/commit/48d2e5e4e064176c8c4d27eddea40d0009446dba)
|
||||||
|
|
||||||
## [v0.0.6](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.5...v0.0.6) - 2020-02-13
|
## [v0.0.6](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.5...v0.0.6) - 2020-02-13
|
||||||
|
|
||||||
### Commits
|
### Commits
|
||||||
|
|||||||
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)
|
||||||
})
|
})
|
||||||
|
|||||||
6
node_modules/async-neocities/CHANGELOG.md
generated
vendored
6
node_modules/async-neocities/CHANGELOG.md
generated
vendored
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||||
|
|
||||||
|
## [v1.1.3](https://github.com/bcomnes/async-neocities/compare/v1.1.2...v1.1.3) - 2020-02-13
|
||||||
|
|
||||||
|
### Commits
|
||||||
|
|
||||||
|
- refactor: Stop logging progress when the stream has been read. [`3ce0fc4`](https://github.com/bcomnes/async-neocities/commit/3ce0fc452acbbbd28c39b53a3a9a4318a8019c09)
|
||||||
|
|
||||||
## [v1.1.2](https://github.com/bcomnes/async-neocities/compare/v1.1.1...v1.1.2) - 2020-02-13
|
## [v1.1.2](https://github.com/bcomnes/async-neocities/compare/v1.1.1...v1.1.2) - 2020-02-13
|
||||||
|
|
||||||
### Commits
|
### Commits
|
||||||
|
|||||||
2
node_modules/async-neocities/lib/stats-handler.js
generated
vendored
2
node_modules/async-neocities/lib/stats-handler.js
generated
vendored
@@ -35,7 +35,7 @@ function statsHandler (opts = {}) {
|
|||||||
|
|
||||||
function progressHandler (stats) {
|
function progressHandler (stats) {
|
||||||
Object.assign(lastStats, stats)
|
Object.assign(lastStats, stats)
|
||||||
if (!stats.complete) {
|
if (!stats.complete || stats.progress < 1) {
|
||||||
if (!progressInterval) {
|
if (!progressInterval) {
|
||||||
progressInterval = setInterval(logProgress, 500, lastStats)
|
progressInterval = setInterval(logProgress, 500, lastStats)
|
||||||
logProgress(lastStats)
|
logProgress(lastStats)
|
||||||
|
|||||||
20
node_modules/async-neocities/package.json
generated
vendored
20
node_modules/async-neocities/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
|||||||
{
|
{
|
||||||
"_from": "async-neocities@1.1.2",
|
"_from": "async-neocities@1.1.3",
|
||||||
"_id": "async-neocities@1.1.2",
|
"_id": "async-neocities@1.1.3",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-Pe7dwjZYb85T0g7YgPjbbhGUa5WlIVVwCrieoPj3urCIN1lVDWSu39OiBkG61Wbi+VDxoJqaa7qWoKC7etSVDw==",
|
"_integrity": "sha512-lUPontZXSugOx3/3TsJQGLmgUwUsH6pKy/yPTnxJF6tMaItXbdR3YwTJne5A//FWFd0sFMfCOkTYuTAz7w55OQ==",
|
||||||
"_location": "/async-neocities",
|
"_location": "/async-neocities",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "async-neocities@1.1.2",
|
"raw": "async-neocities@1.1.3",
|
||||||
"name": "async-neocities",
|
"name": "async-neocities",
|
||||||
"escapedName": "async-neocities",
|
"escapedName": "async-neocities",
|
||||||
"rawSpec": "1.1.2",
|
"rawSpec": "1.1.3",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "1.1.2"
|
"fetchSpec": "1.1.3"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.2.tgz",
|
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.3.tgz",
|
||||||
"_shasum": "275c86c483cfb6360835ba792bc0ba985c9a889a",
|
"_shasum": "15604ec2f98746f8185d7916a5b7469b96480148",
|
||||||
"_spec": "async-neocities@1.1.2",
|
"_spec": "async-neocities@1.1.3",
|
||||||
"_where": "/Users/bret/repos/deploy-to-neocities",
|
"_where": "/Users/bret/repos/deploy-to-neocities",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Bret Comnes",
|
"name": "Bret Comnes",
|
||||||
@@ -80,5 +80,5 @@
|
|||||||
"dist"
|
"dist"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"version": "1.1.2"
|
"version": "1.1.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "deploy-to-neocities",
|
"name": "deploy-to-neocities",
|
||||||
"version": "0.0.6",
|
"version": "0.0.8",
|
||||||
"description": "Github Action to deplpoy a folder to Neocities.org",
|
"description": "Github Action to deplpoy a folder to Neocities.org",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.2.2",
|
"@actions/core": "1.2.2",
|
||||||
"@actions/github": "2.1.0",
|
"@actions/github": "2.1.0",
|
||||||
"async-neocities": "1.1.2",
|
"async-neocities": "1.1.3",
|
||||||
"pretty-time": "1.1.0"
|
"pretty-time": "1.1.0"
|
||||||
},
|
},
|
||||||
"standard": {
|
"standard": {
|
||||||
|
|||||||
Reference in New Issue
Block a user