Repository navigation
Conversation
- Add ssh2-sftp-client dependency - Create scripts/utils/sftp.ts with upload functionality - Implement uploadDweb() in build.ts with retry mechanism - Default SFTP URL: sftp://iweb.xin:22022 - Support DWEB_SFTP_USER, DWEB_SFTP_PASS env vars Tested: Successfully uploaded to iweb.xin:22022
- beta channel uses DWEB_SFTP_USER_DEV / DWEB_SFTP_PASS_DEV - stable channel uses DWEB_SFTP_USER / DWEB_SFTP_PASS - Add SFTP upload step to both self-hosted and github-hosted CD workflows - Add bun setup step for github-hosted runner
- Add auto dev version numbering: VERSION-dev.YYMMDDNO (e.g., 0.1.0-dev.26010401) - Add dev prefix to dweb package id (dev.bfmpay.bfmeta.com.dweb) - Upload dev builds to date-based directories (/YYMMDD/) - Add DevWatermark component for dev builds - Add VITE_DEV_MODE environment variable and __DEV_MODE__ global Tested: Successfully built and uploaded dev.bfmpay.bfmeta.com.dweb-0.1.0-dev.26010401
- Add pnpm release command for version selection - Support patch/minor/major/current/custom version - Integrate build, upload, and GitHub Pages deployment - Auto-update package.json, manifest.json, and CHANGELOG.md - Create git tag and push to trigger CD
- Update all references from webapp-beta to webapp-dev - Affects: CD workflow, build scripts, docs, gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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