add update functionality

This commit is contained in:
Joey Kimsey
2026-09-12 21:45:37 -04:00
parent 1ee2774241
commit 188702e516
7 changed files with 63 additions and 24 deletions

View File

@ -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 })
}