Skip to content

Add GitHub Actions workflow to build signed APK#1

Merged
LeMyst merged 6 commits intomainfrom
copilot/add-github-workflow-build-apk
Feb 25, 2026
Merged

Add GitHub Actions workflow to build signed APK#1
LeMyst merged 6 commits intomainfrom
copilot/add-github-workflow-build-apk

Conversation

Copy link

Copilot AI commented Feb 9, 2026

Adds a workflow that builds a signed release APK and uploads it as a job artifact.

  • Triggers: push/PR to main, workflow_dispatch
  • Signing: Decodes UPLOAD_KEYSTORE secret to a temp .jks file; passes KEY_ALIAS, KEY_PASSWORD, STORE_FILE, STORE_PASSWORD env vars consumed by the existing android/app/build.gradle signing config
  • Build: flutter build apk --release with Java 17 + Flutter via subosito/flutter-action@v2
  • Artifact: Uploads app-release.apk via actions/upload-artifact@v4 as signed-apk

Reuses the same secrets (UPLOAD_KEYSTORE, UPLOAD_KEYSTORE_PASSWORD) already configured for the Play Store workflow in rtchat.yml.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: LeMyst <1592048+LeMyst@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub workflow to build signed APK Add GitHub Actions workflow to build signed APK Feb 9, 2026
Copilot AI requested a review from LeMyst February 9, 2026 20:32
Copilot AI temporarily deployed to android-internal February 22, 2026 08:42 Inactive
Delete .github/workflows/rtchat.yml which defined the RealtimeChat App CI workflow. The removed file contained iOS and Android jobs that referenced muxable reusable workflows, concurrency groups, environment/publish settings, environment URLs, package name, and required secrets for App Store and Google Play publishing.
@LeMyst LeMyst force-pushed the copilot/add-github-workflow-build-apk branch from a9dd417 to 4a46e82 Compare February 22, 2026 15:21
@LeMyst LeMyst marked this pull request as ready for review February 25, 2026 10:42
Copilot AI review requested due to automatic review settings February 25, 2026 10:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow to produce a signed Android release APK as a CI artifact, and adjusts existing CI workflows.

Changes:

  • Add build-apk.yml workflow to decode the signing keystore from secrets, build a release APK, and upload it as an artifact.
  • Update Flutter analyze workflow to not fail the job on analyzer warnings.
  • Remove the previous rtchat.yml workflow that invoked reusable iOS/Android publish workflows.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/rtchat.yml Removes the existing cross-platform (iOS/Android) reusable publish workflow.
.github/workflows/flutter-analyze.yml Changes analyzer behavior so warnings are not fatal in CI.
.github/workflows/build-apk.yml Introduces a new workflow to build and upload a signed release APK artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +10
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow runs on pull_request but uses repository secrets to decode the upload keystore and sign the APK. For PRs from forks, secrets won’t be available and the job will fail; for same-repo PRs, this expands exposure of signing credentials to untrusted PR code. Consider restricting signing to push/workflow_dispatch only, or gating the job/steps with an if: check (e.g., only when github.event.pull_request.head.repo.full_name == github.repository and/or github.event_name != 'pull_request') and using a protected environment for the signing secrets.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +2
name: Build Signed APK

Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is described as adding an APK build workflow, but it also removes the existing rtchat.yml workflow (which previously ran reusable iOS/Android publish jobs). If that removal is intentional, it should be called out in the PR description; otherwise, consider restoring/renaming the old workflow so the release/publish automation isn’t inadvertently dropped.

Copilot uses AI. Check for mistakes.
Comment on lines 22 to +24
uses: invertase/github-action-dart-analyzer@v3
with:
fatal-warnings: false
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting fatal-warnings: false changes CI behavior so analyzer warnings no longer fail the workflow. If this is intentional, it should be justified in the PR description (or scoped to specific warnings) since it weakens the quality gate for all Flutter changes on main/PRs.

Copilot uses AI. Check for mistakes.
LeMyst and others added 2 commits February 25, 2026 13:55
@LeMyst LeMyst merged commit 668c7c5 into main Feb 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants