chore(release): support sftp in release:push and docs
This commit is contained in:
parent
c9c844483a
commit
4516f9f2a9
2 changed files with 5 additions and 4 deletions
|
|
@ -3,11 +3,12 @@
|
||||||
AMO_JWT_ISSUER=your-amo-jwt-issuer
|
AMO_JWT_ISSUER=your-amo-jwt-issuer
|
||||||
AMO_JWT_SECRET=your-amo-jwt-secret
|
AMO_JWT_SECRET=your-amo-jwt-secret
|
||||||
|
|
||||||
# FTP deploy (used by npm run release:push)
|
# FTP/SFTP deploy (used by `npm run release:push`)
|
||||||
# Protocol: ftp (default) or ftps
|
# Protocol: ftp (default), ftps, or sftp
|
||||||
FTP_PROTOCOL=ftp
|
FTP_PROTOCOL=ftp
|
||||||
FTP_HOST=your-ftp-host.example.com
|
FTP_HOST=your-ftp-host.example.com
|
||||||
# Port for ftp/ftps (21 for FTP/explicit FTPS, 990 for implicit FTPS)
|
# Port for ftp/ftps (21 for FTP/explicit FTPS, 990 for implicit FTPS)
|
||||||
|
# For sftp, omit or set 22
|
||||||
FTP_PORT=21
|
FTP_PORT=21
|
||||||
FTP_USER=your-ftp-username
|
FTP_USER=your-ftp-username
|
||||||
FTP_PASS=your-ftp-password
|
FTP_PASS=your-ftp-password
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/env node
|
#!/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.
|
* Reads configuration from .env (auto-loaded) or process.env.
|
||||||
* Env vars:
|
* Env vars:
|
||||||
* FTP_PROTOCOL=ftp|ftps (default: ftp)
|
* FTP_PROTOCOL=ftp|ftps|sftp (default: ftp)
|
||||||
* FTP_HOST=example.com (required)
|
* FTP_HOST=example.com (required)
|
||||||
* FTP_PORT=21 (optional)
|
* FTP_PORT=21 (optional)
|
||||||
* FTP_USER=username (required)
|
* FTP_USER=username (required)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue