This commit is contained in:
commit
366a57b119
3 changed files with 53 additions and 0 deletions
49
.forgejo/workflows/android.yml
Normal file
49
.forgejo/workflows/android.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: Build Android
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build APK
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '21'
|
||||
|
||||
- name: Install bun
|
||||
run: curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
- name: Install app dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Build project app
|
||||
run: bun run build-prod
|
||||
|
||||
- name: Capacitor sync
|
||||
run: bunx cap sync
|
||||
|
||||
- name: Bump version
|
||||
uses: https://github.com/chkfung/android-version-actions@v1.2.2
|
||||
with:
|
||||
gradlePath: android/app/build.gradle
|
||||
versionCode: 2${{github.run_number}}
|
||||
|
||||
- name: Build app bundle
|
||||
run: cd android && ./gradlew bundle
|
||||
|
||||
- name: Upload release bundle
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: app-release
|
||||
path: android/app/build/outputs/bundle/release/app-release-signed.aab
|
||||
retention-days: 60
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "dust"]
|
||||
path = dust
|
||||
url = https://github.com/damiant/dust.git
|
1
dust
Submodule
1
dust
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 70a646b16b9a13a190ea97fe57c534acbb507dfc
|
Loading…
Add table
Reference in a new issue