chore(release): support sftp in release:push and docs

This commit is contained in:
Jordan Wages 2025-08-24 03:53:32 -05:00
commit 4516f9f2a9
2 changed files with 5 additions and 4 deletions

View file

@ -3,11 +3,12 @@
AMO_JWT_ISSUER=your-amo-jwt-issuer
AMO_JWT_SECRET=your-amo-jwt-secret
# FTP deploy (used by npm run release:push)
# Protocol: ftp (default) or ftps
# FTP/SFTP deploy (used by `npm run release:push`)
# Protocol: ftp (default), ftps, or sftp
FTP_PROTOCOL=ftp
FTP_HOST=your-ftp-host.example.com
# Port for ftp/ftps (21 for FTP/explicit FTPS, 990 for implicit FTPS)
# For sftp, omit or set 22
FTP_PORT=21
FTP_USER=your-ftp-username
FTP_PASS=your-ftp-password

View file

@ -1,9 +1,9 @@
#!/usr/bin/env node
/*
* Uploads the latest signed release artifacts in releases/<version>/ via FTP/FTPS using curl.
* Uploads the latest signed release artifacts in releases/<version>/ via FTP/FTPS/SFTP using curl.
* Reads configuration from .env (auto-loaded) or process.env.
* Env vars:
* FTP_PROTOCOL=ftp|ftps (default: ftp)
* FTP_PROTOCOL=ftp|ftps|sftp (default: ftp)
* FTP_HOST=example.com (required)
* FTP_PORT=21 (optional)
* FTP_USER=username (required)