mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-16 22:56:28 +00:00
chore: remove debug statements
This commit is contained in:
parent
5ed114bebe
commit
06e20d6efa
2
.github/workflows/neocities.yml
vendored
2
.github/workflows/neocities.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
npm run build
|
||||
# When the dist_dir is ready, deploy it to neocities
|
||||
- name: Deploy to neocities
|
||||
uses: bcomnes/deploy-to-neocities@master
|
||||
uses: bcomnes/deploy-to-neocities@master # dont use master in production
|
||||
with:
|
||||
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
|
||||
cleanup: false
|
||||
|
||||
5
index.js
5
index.js
@ -10,10 +10,7 @@ async function doDeploy () {
|
||||
const token = core.getInput('api_token')
|
||||
const distDir = path.join(process.cwd(), core.getInput('dist_dir'))
|
||||
const cleanup = JSON.parse(core.getInput('cleanup'))
|
||||
console.log(cleanup)
|
||||
console.log(typeof cleanup)
|
||||
console.log(core.getInput('cleanup'))
|
||||
console.log(typeof core.getInput('cleanup'))
|
||||
|
||||
assert(typeof cleanup === 'boolean', 'Cleanup input must be a boolean "true" or "false"')
|
||||
const stat = await fsp.stat()
|
||||
assert(stat.isDirectory(), 'dist_dir must be a directory that exists')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user