Android release (v0.1.7) (native share and download support ) #12
Workflow file for this run
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: Android Release | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| android-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - name: Install deps & build web | |
| run: | | |
| cd frontend | |
| pnpm install | |
| pnpm run build | |
| - name: Inject build timestamp | |
| run: | | |
| echo '{ "lastDeployed": "'$(date -u +'%Y-%m-%dT%H:%M:%SZ')'", "deployedBy": "Pritam Debnath" }' \ | |
| > frontend/dist/last-deployed.json | |
| # π Generate Android project fresh | |
| - name: Generate Android project | |
| run: | | |
| cd frontend | |
| npx cap add android | |
| pnpm run android:assets:generate | |
| npx cap sync android | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Make gradlew executable | |
| run: chmod +x frontend/android/gradlew | |
| - name: Build Debug APK | |
| run: | | |
| cd frontend/android | |
| ./gradlew assembleDebug | |
| - name: Upload APK to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: frontend/android/app/build/outputs/apk/debug/app-debug.apk |