2020-05-25 15:45:05 +00:00
|
|
|
name: Debug APK Builder
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
|
2020-08-06 07:46:07 +00:00
|
|
|
- name: Write firebase config to file
|
|
|
|
run: echo $FIREBASE_CONFIG > app/google-services.json
|
|
|
|
env:
|
|
|
|
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
|
|
|
|
|
2020-05-25 15:45:05 +00:00
|
|
|
- name: Grant rights
|
|
|
|
run: chmod +x ./gradlew
|
|
|
|
|
|
|
|
- name: Build project with Gradle
|
|
|
|
run: ./gradlew build
|
|
|
|
|
2020-08-03 09:54:59 +00:00
|
|
|
- name: Build Debug APK with Gradle
|
2020-05-25 15:45:05 +00:00
|
|
|
run: ./gradlew assembleDebug
|
|
|
|
|
2020-08-04 15:10:05 +00:00
|
|
|
- name: Upload Debug
|
2020-05-25 15:45:05 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2020-08-04 15:10:05 +00:00
|
|
|
name: 'Manager'
|
2020-07-03 16:32:21 +00:00
|
|
|
path: app/build/outputs/apk/debug/app-debug.apk
|