ci: android release apk build via github actions
This commit is contained in:
parent
783146c991
commit
1c64d3c214
2 changed files with 36 additions and 0 deletions
29
.github/workflows/android-release.yml
vendored
Normal file
29
.github/workflows/android-release.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: android-release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
- run: npm ci
|
||||
- run: npx expo prebuild --platform android --no-install
|
||||
- name: build release apk
|
||||
run: |
|
||||
cd android
|
||||
chmod +x gradlew
|
||||
./gradlew assembleRelease
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: AniSav-android
|
||||
path: android/app/build/outputs/apk/release/app-release.apk
|
||||
Loading…
Add table
Add a link
Reference in a new issue