Kaynağa Gözat

feat: add simplified build and deploy production workflow in .clinerules/workflows/build-and-deploy-production.md

sw 2 hafta önce
ebeveyn
işleme
79fc6cc761

+ 31 - 0
.clinerules/workflows/build-and-deploy-production.md

@@ -0,0 +1,31 @@
+<task name="Build and Deploy Production">
+
+<task_objective>
+简化的生产环境构建和部署流程,执行npm构建命令生成生产版本的H5应用,然后将构建产物复制到远程Linux服务器。该工作流只包含核心的构建和复制操作。
+</task_objective>
+
+<detailed_sequence_steps>
+
+# Build and Deploy Production Process - Detailed Sequence of Steps
+
+## 1. Execute Build Command
+
+1. Use the `execute_command` tool to run the production build:
+   ```
+   npm run h5_for_production
+   ```
+
+## 2. Copy Build Artifacts to Remote Server
+
+1. Use the `execute_command` tool to copy files to remote server:
+   ```
+   scp -r dist/h5/* ccos@192.168.110.112:/home/ccos/dros/linux-arm64-unpacked/h5/
+   ```
+
+## 3. Complete Workflow
+
+1. Use the `attempt_completion` tool to present the final results showing the execution status of both commands.
+
+</detailed_sequence_steps>
+
+</task>