mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-21 00:46:29 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f13458cc2d | ||
|
|
5e6f9848c7 | ||
|
|
fad2c4a165 | ||
|
|
1638c39428 | ||
|
|
c50fdeb3e6 | ||
|
|
48d2e5e4e0 | ||
|
|
aaf8a90973 | ||
|
|
34601c4927 |
24
CHANGELOG.md
24
CHANGELOG.md
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## [v0.0.9](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.8...v0.0.9) - 2020-02-13
|
||||
|
||||
### Commits
|
||||
|
||||
- chore: update deps [`5e6f984`](https://github.com/bcomnes/deploy-to-neocities/commit/5e6f9848c78a5f3a668b47a27dc14835005bf98c)
|
||||
|
||||
## [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
|
||||
|
||||
### Commits
|
||||
|
||||
- bug: update async-neocities to 1.1.2 [`34601c4`](https://github.com/bcomnes/deploy-to-neocities/commit/34601c49277891d15395a79b28eeb21781a019da)
|
||||
|
||||
## [v0.0.5](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.4...v0.0.5) - 2020-02-13
|
||||
|
||||
### Commits
|
||||
|
||||
5
index.js
5
index.js
@@ -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)
|
||||
})
|
||||
|
||||
18
node_modules/async-neocities/CHANGELOG.md
generated
vendored
18
node_modules/async-neocities/CHANGELOG.md
generated
vendored
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## [v1.1.4](https://github.com/bcomnes/async-neocities/compare/v1.1.3...v1.1.4) - 2020-02-13
|
||||
|
||||
### Commits
|
||||
|
||||
- bug: fix logging handler logic [`f6c5921`](https://github.com/bcomnes/async-neocities/commit/f6c5921d6fd0a420c5895ed6ba2fe2f766e726fd)
|
||||
|
||||
## [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
|
||||
|
||||
### Commits
|
||||
|
||||
- bug: Fix export name of statsHandler [`8958e5e`](https://github.com/bcomnes/async-neocities/commit/8958e5eeb947376690a1ce0cefe7cce3d59be5b8)
|
||||
|
||||
## [v1.1.1](https://github.com/bcomnes/async-neocities/compare/v1.1.0...v1.1.1) - 2020-02-13
|
||||
|
||||
### Commits
|
||||
|
||||
2
node_modules/async-neocities/index.js
generated
vendored
2
node_modules/async-neocities/index.js
generated
vendored
@@ -57,7 +57,7 @@ class NeocitiesAPIClient {
|
||||
return fetch(url, opts)
|
||||
}
|
||||
|
||||
static statsHanler (...args) { return statsHandler(...args) }
|
||||
static statsHandler (...args) { return statsHandler(...args) }
|
||||
|
||||
/**
|
||||
* Create an async-neocities api client.
|
||||
|
||||
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) {
|
||||
Object.assign(lastStats, stats)
|
||||
if (!stats.complete) {
|
||||
if (!stats.complete && stats.progress < 1) {
|
||||
if (!progressInterval) {
|
||||
progressInterval = setInterval(logProgress, 500, 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.1",
|
||||
"_id": "async-neocities@1.1.1",
|
||||
"_from": "async-neocities@1.1.4",
|
||||
"_id": "async-neocities@1.1.4",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-iYSEfp6567pmuMXcHkm09zG/+jNBH1Bg0ThbvrJDX/PhxbttK5S66VX4M5BJbiEWEBDjrjcP+Km1eBM5DSeURQ==",
|
||||
"_integrity": "sha512-EpVYipQlIkBGSbZYfnrJYpAhgoYbC2MyWypcMZ+YnPUM1c38WsKGA5QGujX6Rg6gQQKwUUTt/tuYSg8gPQGsSA==",
|
||||
"_location": "/async-neocities",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "async-neocities@1.1.1",
|
||||
"raw": "async-neocities@1.1.4",
|
||||
"name": "async-neocities",
|
||||
"escapedName": "async-neocities",
|
||||
"rawSpec": "1.1.1",
|
||||
"rawSpec": "1.1.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.1.1"
|
||||
"fetchSpec": "1.1.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.1.tgz",
|
||||
"_shasum": "cca697ff75ff70225fa7e10bd1b3bada555ef8bf",
|
||||
"_spec": "async-neocities@1.1.1",
|
||||
"_resolved": "https://registry.npmjs.org/async-neocities/-/async-neocities-1.1.4.tgz",
|
||||
"_shasum": "7edb6d8a9ceee4fdc410b562430119619dd31aca",
|
||||
"_spec": "async-neocities@1.1.4",
|
||||
"_where": "/Users/bret/repos/deploy-to-neocities",
|
||||
"author": {
|
||||
"name": "Bret Comnes",
|
||||
@@ -80,5 +80,5 @@
|
||||
"dist"
|
||||
]
|
||||
},
|
||||
"version": "1.1.1"
|
||||
"version": "1.1.4"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "deploy-to-neocities",
|
||||
"version": "0.0.5",
|
||||
"version": "0.0.9",
|
||||
"description": "Github Action to deplpoy a folder to Neocities.org",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
@@ -39,7 +39,7 @@
|
||||
"dependencies": {
|
||||
"@actions/core": "1.2.2",
|
||||
"@actions/github": "2.1.0",
|
||||
"async-neocities": "1.1.1",
|
||||
"async-neocities": "1.1.4",
|
||||
"pretty-time": "1.1.0"
|
||||
},
|
||||
"standard": {
|
||||
|
||||
Reference in New Issue
Block a user