forked from olcxjas-softworks/LarpixClient
Add android build workflow
This commit is contained in:
parent
10d8045f0f
commit
c627e1164c
2 changed files with 52 additions and 0 deletions
50
.forgejo/workflows/Android.yaml
Normal file
50
.forgejo/workflows/Android.yaml
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
name: Android Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
|
||||
- name: Sync capacitor
|
||||
run: npx cap sync
|
||||
|
||||
- name: Generate assets
|
||||
run: npx capacitor-assets generate --android
|
||||
|
||||
- name: Update web app
|
||||
run: npx cap copy
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- name: Build unsigned release APK
|
||||
run: |
|
||||
cd android
|
||||
./gradlew assembleRelease
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: miarven
|
||||
path: ./android/app/build/outputs/apk/release/app-release-unsigned.apk
|
||||
Loading…
Add table
Add a link
Reference in a new issue