This repository was archived by the owner on Feb 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (44 loc) · 1.61 KB
/
android-debug.yml
File metadata and controls
58 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Generate Android Development APK
on: [push, pull_request]
jobs:
apk_gen:
name: Generate debug app
runs-on: ubuntu-latest
steps:
- name: Get code from the current repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Reconfigure git to use HTTP
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Install Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install Android SDK
uses: android-actions/setup-android@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install Ionic
run: npm install -g @ionic/cli
- name: Install app dependencies
run: npm install
- name: Convert Windows line endings to Linux from the gradlew file
run: sudo apt update && sudo apt install dos2unix && cd android && dos2unix ./gradlew && cd ..
- name: Make ./gradlew command executable
run: cd android && chmod +x ./gradlew && cd ..
- name: Build Ionic assets
run: ionic build --prod
- name: Copy generated assets from Ionic to Capacitor Android platform
run: npx cap copy android && npx cap update android
- name: Generate APK
run: cd android && ./gradlew assembleDebug && cd ..
- name: Upload generated APK to Github
uses: actions/upload-artifact@v1
with:
name: itchy-nightly-zipped
path: android/app/build/outputs/apk/debug/app-debug.apk