Skip to content

Merge pull request #48 from omer358/dev #25

Merge pull request #48 from omer358/dev

Merge pull request #48 from omer358/dev #25

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Load Google Service file
env:
data: ${{secrets.GOOGLE_SERVICES_JSON}}
run: echo $DATA | base64 -di > app/google-services.json
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: app/build/outputs/apk/release/*.apk