File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,28 +17,28 @@ jobs:
1717 - uses : actions/setup-java@v4
1818 with :
1919 distribution : temurin
20- java-version : 21
20+ java-version : 17
2121
2222 - name : Setup Android SDK
2323 uses : android-actions/setup-android@v3
2424
2525 - name : Install dependencies
2626 run : npm install
2727
28- - name : Build web app for mobile
28+ - name : Build web app
2929 run : npx vite build --base ./
3030
31- - name : Setup Capacitor
31+ - name : Setup Capacitor 5
3232 run : |
33- npm install @capacitor/core @capacitor/cli @capacitor/android
34- cat > capacitor.config.json << 'EOF '
33+ npm install @capacitor/core@5 @capacitor/cli@5 @capacitor/android@5
34+ cat > capacitor.config.json << 'CAPEOF '
3535 {
3636 "appId": "com.tapiwa.todoapp",
3737 "appName": "Todo App",
3838 "webDir": "dist",
3939 "server": { "androidScheme": "https" }
4040 }
41- EOF
41+ CAPEOF
4242 npx cap add android
4343 npx cap sync
4444
4848 chmod +x gradlew
4949 ./gradlew assembleDebug
5050
51- - name : Rename APK
52- run : cp android/app/build/outputs/apk/debug/app-debug.apk todo-app.apk
53-
54- - name : Upload APK to Release
51+ - name : Upload APK
5552 uses : softprops/action-gh-release@v2
5653 with :
57- files : todo- app.apk
54+ files : android/ app/build/outputs/apk/debug/app-debug .apk
You can’t perform that action at this time.
0 commit comments