This commit is contained in:
parent
d7b839f197
commit
8f992e2153
55
.gitea/workflows/make-app.yaml
Normal file
55
.gitea/workflows/make-app.yaml
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
name: Build Android
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build APK
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup java
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 1.8
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 13.x
|
||||||
|
|
||||||
|
- name: Install Ionic
|
||||||
|
run: npm install -g @ionic/cli
|
||||||
|
|
||||||
|
- name: Install app dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build Ionic App
|
||||||
|
run: ionic build
|
||||||
|
|
||||||
|
- name: Copy Android
|
||||||
|
run: ionic capacitor copy android
|
||||||
|
|
||||||
|
- name: Build Android Dev APK
|
||||||
|
run: ionic capacitor build android
|
||||||
|
|
||||||
|
- name: Build Android Release APK
|
||||||
|
run: ionic capacitor build android --release --prod
|
||||||
|
|
||||||
|
- name: Generate the Android App Bundle
|
||||||
|
working-directory: ./android/
|
||||||
|
run: ./gradlew bundle
|
||||||
|
|
||||||
|
- name: Upload dev APK
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: app-dev
|
||||||
|
path: apk/app-debug.apk
|
||||||
|
|
||||||
|
- name: Upload release bundle
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: app-release
|
||||||
|
path: apk/app.aab
|
Loading…
Reference in New Issue
Block a user