Skip to content

Merge pull request #70 from PDX-ORG/dependabot/github_actions/gradle/… #331

Merge pull request #70 from PDX-ORG/dependabot/github_actions/gradle/…

Merge pull request #70 from PDX-ORG/dependabot/github_actions/gradle/… #331

Workflow file for this run

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@b5126f31dbc19dd434c3269bf8c28c315e121da2
with:
arguments: clean assemble test --stacktrace
- uses: actions/upload-artifact@v3
name: Upload artifacts
with:
name: outputs
path: sources/target/*/build/outputs