feat: Create GitHub action for building debug and release demo-app apk #1
This file contains 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 Build and Release | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Build APK debug | |
run: ./gradlew assembleDebug | |
- name: Build APK release | |
run: ./gradlew assembleRelease | |
- name: Upload debug apk | |
uses: actions/upload-artifact@v2 | |
with: | |
name: enioka_scan_demo_apks | |
path: | | |
${{ github.workspace }}/build/outputs/apk/release/app-release.apk | |
${{ github.workspace }}/build/outputs/apk/debug/app-debug.apk |