add update functionality
This commit is contained in:
@ -10,6 +10,6 @@ if (!args.includes('--upload')) {
|
||||
for (const file of release.files) console.log(` ${file.name} (${file.data.length} bytes)`)
|
||||
console.log('No files uploaded. Add --upload with CAPSULE_UPLOAD_URL and CAPSULE_UPLOAD_TOKEN to publish.')
|
||||
} else {
|
||||
// This adapter targets an authenticated HTTPS PUT/WebDAV endpoint, not any TTP site API.
|
||||
// Publish through the TTP Capsule plugin's authenticated chunk upload endpoint.
|
||||
await uploadRelease(release, { uploadUrl: process.env.CAPSULE_UPLOAD_URL, token: process.env.CAPSULE_UPLOAD_TOKEN })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user