fix name for job #67
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: Build debug apk | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
with: | |
android-sdk-tools-version: 30.0.5 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Generate Gradle checksums | |
run: | | |
find "." -name "gradle.lockfile" -type f | sort | xargs shasum > gradle-checksums.txt | |
cat gradle-checksums.txt | |
- name: Setup gradlew cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle | |
key: gradle-${{ hashFiles('gradle-checksums.txt') }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
gradle-${{ hashFiles('gradle-checksums.txt') }}- | |
- name: Setup local.properties | |
env: | |
APIRESTKEY: ${{ secrets.API_ROTATIONS_KEY }} | |
run: | | |
sed "s|API_ROTATIONS_KEY|API_ROTATIONS_KEY|g;" local.defaults.properties > local.properties | |
- name: Build APK | |
run: ./gradlew assembleDebug | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-debug.apk | |
path: app/build/outputs/apk/debug/app-debug.apk |