File tree Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Expand file tree Collapse file tree 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 2
2
name : Android - Build
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ dist-path :
7
+ description : path to folder containing code to include in app. Omit if code not in a subfolder
8
+ type : string
9
+ default : " "
5
10
jobs :
6
11
android_build :
7
12
runs-on : ubuntu-latest
14
19
- name : Checkout app repo code
15
20
uses : actions/checkout@v4
16
21
with :
17
- path : " src"
18
- fetch-depth : 0
22
+ path : " dist"
23
+ sparse-checkout : ${{ inputs.dist-path }}
24
+ sparse-checkout-cone-mode : false
19
25
20
26
- name : Setup Node
21
27
uses : actions/setup-node@v4
@@ -42,12 +48,16 @@ jobs:
42
48
- name : Setup Android SDK
43
49
uses : android-actions/setup-android@v2
44
50
45
- - name : Build Android Debug APK
46
- working-directory : apps/picsa-apps/extension-app-native /android
51
+ - name : Build Android Debug Bundle
52
+ working-directory : . /android
47
53
run : ./gradlew :app:assembleDebug
48
54
49
- - name : Build Android Release Bundle
50
- working-directory : apps/picsa-apps/extension-app-native/android
51
- run : ./gradlew :app:bundleRelease
55
+ - name : Upload Debug Bundle
56
+ uses : actions/upload-artifact@v4
57
+ with :
58
+ name : debug_aab
59
+ path : ./android/app/build/outputs/bundle/debug/app-debug.aab
52
60
53
- - name : Save build artifacts
61
+ # - name: Build Android Release Bundle
62
+ # working-directory: ./android
63
+ # run: ./gradlew :app:bundleRelease
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
android_build :
10
10
uses : supportingami/programming-club-builder/.github/workflows/android-build.yml@main
11
+ with :
12
+ dist-path : demo
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ npx capacitor-assets generate
20
20
Once the platform has been added code can be compiled and imported into the android app
21
21
22
22
``` bash
23
- npm run build
24
23
npx cap sync
25
24
```
26
25
You can’t perform that action at this time.
0 commit comments