mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-19 00:11:45 +00:00
Add GitHub Actions workflow to build Android APK
This commit is contained in:
parent
cd5f0d92d0
commit
7e22e73e62
1 changed files with 47 additions and 0 deletions
47
.github/workflows/build.yml
vendored
Normal file
47
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
name: Build Android APK
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Runs every day at 00:00 UTC
|
||||
workflow_dispatch: # Allows you to run this manually from the "Actions" tab
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install --legacy-peer-deps
|
||||
|
||||
- name: Setup Expo
|
||||
uses: expo/expo-github-action@v8
|
||||
with:
|
||||
expo-version: latest
|
||||
|
||||
- name: Prebuild Android
|
||||
run: npx expo prebuild --platform android
|
||||
|
||||
- name: Build APK (Release)
|
||||
run: |
|
||||
cd android
|
||||
chmod +x gradlew
|
||||
./gradlew assembleRelease
|
||||
|
||||
- name: Upload APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: nuvio-app-release
|
||||
path: android/app/build/outputs/apk/release/app-release.apk
|
||||
Loading…
Reference in a new issue