Merge pull request #65 from PDX-ORG/dependabot/gradle/ktor-2.3.4 #324
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@v2 | |
- 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@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc | |
with: | |
arguments: clean assemble test --stacktrace | |
- uses: actions/upload-artifact@v3 | |
name: Upload artifacts | |
with: | |
name: outputs | |
path: sources/target/*/build/outputs |