Add Deploy Android workflow_dispatch button (signed AAB) #58
Notifications
Due Date
No due date set.
Depends on
#57 CI: build Android (assembleDebug) on merge to master
ai_ml_operations/chat_web_app
Reference: ai_ml_operations/chat_web_app#58
Reference in New Issue
Block a user
Summary
Add a manual Gitea "Deploy Android" button (
workflow_dispatch), mirroring Deploy Prod: operator picks a SHA / runs the workflow → unit tests → signed release AAB (and later optional Play internal upload).Web Deploy Prod stays web-static via
server-infra/scripts/deploy.sh. Android is not nginx/node-static— keep it as a dedicated workflow that builds/signs (and optionally uploads to Play), not an extension ofdeploy.sh.Depends on:
Current state
.gitea/workflows/deploy-prod.yml→ tests →deploy.sh --app chat_web_app --env prodANDROID.md/android/README.md):build:mobile→./gradlew bundleReleasewith gitignoredkeystore.propertiesTarget
android-build.yml(#57)masterdeploy-android.yml(this)workflow_dispatchonlyapp-release.aab(+ optional Play)deploy-prod.ymlworkflow_dispatchWork
1. New
.gitea/workflows/deploy-android.ymlDeploy Androidworkflow_dispatch: {}(optional inputs later: Play trackinternal/production)unit-tests— same pattern as Deploy Prod (npm ci+test:ciinllm-fe)deploy-android(needs tests):npm ci→npm run build:mobile~/Documents/secrets/chat_web_app/android/keystore.propertiesinto place for the job — never commit)cd android && ./gradlew bundleRelease --no-daemonapp-release.aabas workflow artifact2. Versioning checklist / automation
Before each store release:
versionCode(required) andversionNameinandroid/app/build.gradleversionNamealigned withpackage.jsonversionEither automate a bump step or document a pre-flight checklist in
ANDROID.mdso button presses don't fail Play upload on duplicate versionCode.3. Optional npm helper
e.g.
android:bundle→build:mobile+gradlew bundleReleasefor local parity with CI.4. Docs
ANDROID.md: point operators at the Gitea button; keep local signing steps for offline builds5. Out of scope
deploy.sh/ Ansiblehost_appsfor APK hostingCoordination
Acceptance criteria
workflow_dispatch)app-release.aabartifact for the chosen refReferences
.gitea/workflows/deploy-prod.ymlllm-fe/ANDROID.md,llm-fe/android/README.md