Updated android.yml #81
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 CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| JDK_VERSION: 17 | |
| JDK_DISTRIBUTION: temurin | |
| jobs: | |
| build: | |
| name: Build App | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup JDK {{ env.JDK_VERSION }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JDK_DISTRIBUTION }} | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Build APK | |
| run: bash ./gradlew assembleDebug --stacktrace | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MoviesKotlinDemo.apk | |
| path: app/build/outputs/apk/debug/app-debug.apk |