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
|
||||||
|
|
@ -13,4 +13,11 @@ npm install
|
||||||
npx expo start
|
npx expo start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## билды
|
||||||
|
|
||||||
|
- ios: `.github/workflows/ios-unsigned.yml`, unsigned ipa, гоняй через AltStore/SideStore
|
||||||
|
- android: `.github/workflows/android-release.yml`, release apk (подписан дебаг-ключом, для сайдлоада ок), просто ставь и запускай
|
||||||
|
|
||||||
|
обе кнопкой в Actions или смотри в [Releases](https://github.com/ImSavsis/anisav-mobile/releases)
|
||||||
|
|
||||||
сделано im.savsis.xyz
|
сделано im.savsis.xyz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue