Skip to content

Commit

Permalink
chore(ci): generate apk (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 authored Sep 24, 2024
1 parent 04082c2 commit 65d612e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/generate-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate Android APK
on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout 🔖
uses: actions/[email protected]

- name: Setup Node.js 🔨
uses: actions/[email protected]
with:
node-version: 20

- name: Install Dependencies 🔨
run: npm i

- name: Build Web Assets 🔨
run: npm run build

- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'

- name: Set up Android SDK
uses: android-actions/setup-android@v2

- name: Sync Capacitor Assets 🔨
run: npx cap sync && npx cap copy android && cd android && ./gradlew assembleDebug

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: debug-apk
path: android/app/build/outputs/apk/debug/app-debug.apk

0 comments on commit 65d612e

Please sign in to comment.