Fix CI workflow for Expo + Android APK #1
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 APK | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - run: npm install | |
| - run: npx expo prebuild --no-install | |
| - name: Build Release APK | |
| run: cd android && ./gradlew assembleRelease | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-release | |
| path: android/app/build/outputs/apk/release/app-release.apk | |