feat(build): DWEB 打包上传功能 + 发布脚本 #153
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
功能概述
1. DWEB 打包和上传
scripts/utils/sftp.ts)--upload参数上传到服务器sftp://iweb.xin:220222. Dev/Stable 渠道区分
DWEB_SFTP_USER_DEVdev./YYMMDD/DWEB_SFTP_USER/3. Dev 版本自动编号
VERSION-dev.YYMMDDNO0.1.0-dev.260104014. Dev 水印
DevWatermark组件__DEV_MODE__全局变量控制5. 发布脚本 (
pnpm release)交互式版本选择:
完整发布流程:
6. 路径重命名
webapp-beta→webapp-dev环境变量
GitHub Secrets 需要配置
DWEB_SFTP_USERDWEB_SFTP_PASSDWEB_SFTP_USER_DEVDWEB_SFTP_PASS_DEV