Merge pull request #121 from PDX-ORG/dependabot/gradle/agp-8.6.0-alpha05 #417
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 APK | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Create Google Services JSON File | |
env: | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
run: | | |
echo "$GOOGLE_SERVICES_JSON" > ./sources/target/app/google-services.json | |
echo "$GOOGLE_SERVICES_JSON" > ./sources/target/type-calculator/google-services.json | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@66535aaf56f831b35e3a8481c9c99b665b84dd45 | |
with: | |
arguments: clean assemble test --stacktrace | |
- uses: actions/upload-artifact@v3 | |
name: Upload artifacts | |
with: | |
name: outputs | |
path: sources/target/*/build/outputs |