Compare commits

..

3 Commits

Author SHA1 Message Date
Bret Comnes
4a9e7f6a6d 0.0.3 2020-02-12 21:18:23 -07:00
Bret Comnes
2c52eeaa2b bug: Fix reference bug in logging 2020-02-12 21:17:13 -07:00
Bret Comnes
19246fac79 Fix boolean parsing 2020-02-12 21:14:59 -07:00
4 changed files with 14 additions and 7 deletions

View File

@@ -7,6 +7,13 @@ 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.3](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.2...v0.0.3) - 2020-02-13
### Commits
- Fix boolean parsing [`19246fa`](https://github.com/bcomnes/deploy-to-neocities/commit/19246fac798151a3ab80666412f72394c0615c32)
- bug: Fix reference bug in logging [`2c52eea`](https://github.com/bcomnes/deploy-to-neocities/commit/2c52eeaa2badbb1bcb3c2520e358fcc088bc3879)
## [v0.0.2](https://github.com/bcomnes/deploy-to-neocities/compare/v0.0.1...v0.0.2) - 2020-02-13
### Commits

View File

@@ -4,10 +4,10 @@ branding:
icon: cat
color: yellow
inputs:
api-token: # api token for site to deploy to
apiToken: # api token for site to deploy to
description: 'Neocities API token for site to deploy to'
required: true
dist-dir:
distDir:
description: 'Local folder to deploy to neocities'
default: 'public'
required: true

View File

@@ -6,9 +6,9 @@ const prettyTime = require('pretty-time')
const prettyBytes = require('pretty-bytes')
async function doDeploy () {
const token = core.getInput('api-token')
const distDir = path.join(process.cwd(), core.getInput('dist-dir'))
const cleanup = core.getInput('cleanup')
const token = core.getInput('apiToken')
const distDir = path.join(process.cwd(), core.getInput('distDir'))
const cleanup = JSON.parse(core.getInput('cleanup'))
console.log(typeof cleanup)
const client = new Neocities(token)
@@ -66,7 +66,7 @@ function statsHandler (opts = {}) {
console.log(`Done diffing local and remote files in ${prettyTime([0, stats.timer.elapsed])}`)
console.log(`${diffing.uploadCount} files to upload`)
console.log(`${diffing.deleteCount} ` + (opts.cleanup ? 'files to delete' : 'orphaned files'))
console.log(`${diffing.skipCoount} files to skip`)
console.log(`${diffing.skipCount} files to skip`)
core.endGroup()
break
}

View File

@@ -1,6 +1,6 @@
{
"name": "deploy-to-neocities",
"version": "0.0.2",
"version": "0.0.3",
"description": "Github Action to deplpoy a folder to Neocities.org",
"main": "index.js",
"private": true,