iT邦幫忙

2026 iThome 鐵人賽

DAY 24
0
Build on Google AI

將考國際證照的應用程式變成開源系列 第 34

deployment : ci-cd-automation

  • 分享至 

  • xImage
  •  

06-ci-cd-automation

CI/CD 自動化 (CI/CD Automation)

AI Agent Target: Inventory of all Python, PowerShell, and Node.js automation scripts, their dependencies, and execution contexts.
Human Target: 使用專案自動化腳本進行部署、資料同步與背景任務的指南。

Python 腳本清單

需要 Python 3.10+ 與 pip 相依性 (requirements.txt)。

  • classify_questions_ai.py: 使用 AI 將問題分類至各領域。
  • generate_ai_explanations.py: 批次產生問題的詳細解析。
  • generate_question_embeddings.py: 產生向量嵌入以供語意搜尋使用。
  • sync_supabase_to_firebase.py: 將 Supabase 資料同步至 Firebase RTDB。
  • deploy_play_store.py: 自動化 Google Play Console AAB 上傳。
  • delete_anonymous_auth.py: 清除過期的 Firebase 匿名驗證帳號。
  • get_latest_version.py / get_active_releases.py: 管理並獲取應用程式版本。

PowerShell 腳本清單

主要用於編譯與部署應用程式。

  • build_aab_*.ps1: 針對 Android 的多種編譯腳本。
  • build_web*.ps1: 針對 Flutter Web 的腳本。

Node.js 腳本清單

用於 Supabase Edge Functions 與 Cloudflare Workers。

  • deploy_functions.js: 上傳函式至 Supabase。

建議的 CI/CD 流程 (GitHub Actions)

  1. 觸發條件: 推送至 main 分支。
  2. 工作 1 (測試): 執行 flutter test
  3. 工作 2 (編譯): 執行 flutter build appbundle
  4. 工作 3 (部署): 執行 deploy_play_store.py 發布至內部測試軌道。

上一篇
deployment: 05-secrets-management.md
下一篇
database : schema-setup
系列文
將考國際證照的應用程式變成開源39
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言