Skip to content

Commit

Permalink
debug build workflow
Browse files Browse the repository at this point in the history
builds an unsigned debug APK
  • Loading branch information
x100111010 committed Aug 9, 2024
1 parent 78b0882 commit a48c661
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
distribution: 'temurin'
java-version: '17'

- name: Get dependencies
run: flutter pub get

- name: Run code generation
run: dart run build_runner build

- name: Install dependencies
run: flutter pub get

- name: Decode keystore, build Android APK and sign
env:
SIGNING_KEYSTORE: "keystore.jks"
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build_android_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Android

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Get dependencies
run: flutter pub get

- name: Run code generation
run: dart run build_runner build

- name: build Android APK
run: flutter build apk

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: android-build
path: build/app/outputs/flutter-apk/app-release.apk
if-no-files-found: ignore
retention-days: 7 # specifies how long to keep the artifact

0 comments on commit a48c661

Please sign in to comment.