feat: add build output collection step to Deploy Only workflow - Check outputs/default/bundles/signed/ before deploy, collect signed artifacts from module build directories if empty

This commit is contained in:
cheliangzhao
2026-02-11 13:07:34 +08:00
parent ab3ba1e8a0
commit 8aa8fd567e
2 changed files with 5 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- **harmonyos-build-deploy**: Fixed module type identification — now uses `module.json5` `type` field instead of heuristic based on `targets` presence
- **harmonyos-build-deploy**: Extracted module discovery, build outputs, and unwanted modules into `references/module-discovery.md` (~138 lines moved out of SKILL.md)
- **harmonyos-build-deploy**: Fixed unquoted variable in install.sh script
- **harmonyos-build-deploy**: Deploy Only workflow now checks for empty output directory and collects signed artifacts from module build directories
### Removed

View File

@@ -66,9 +66,10 @@ Delegate to subagent with the following steps:
Delegate to subagent with the following steps:
1. Read `AppScope/app.json5` to get bundleName
2. Deploy to device (see [Push and Install](#push-and-install) below)
3. Launch: `hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"`
4. Report success/failure with details
2. Check `outputs/default/bundles/signed/` for existing build outputs. If empty or missing, collect signed HAP/HSP from each module's build directory (`{srcPath}/build/default/outputs/default/*-signed.*`) into `outputs/default/bundles/signed/`. See [module-discovery.md](references/module-discovery.md) for details.
3. Deploy to device (see [Push and Install](#push-and-install) below)
4. Launch: `hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"`
5. Report success/failure with details
### Clean App Cache/Data