Last Sync: 2026-01-26 18:20 (Mobile) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Android APK | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Web Assets | |
| run: npm run build | |
| - name: Initialize Capacitor Android | |
| run: | | |
| npx cap add android | |
| npx cap sync | |
| - name: Build APK (Debug) | |
| working-directory: ./android | |
| run: ./gradlew assembleDebug | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: paperknife-debug | |
| path: android/app/build/outputs/apk/debug/app-debug.apk |