Skip to content

Merge pull request #19 from KNUTICE/main #30

Merge pull request #19 from KNUTICE/main

Merge pull request #19 from KNUTICE/main #30

name: Validate Development for Release
on:
push:
branches: ["development"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java JDk
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Change permissions of Wrapper
run: chmod +x ./gradlew
- name: Decode BASEURL
env:
BASEURL: ${{ secrets.BASEURL }}
run: echo BASEURL="$BASEURL" > ./local.properties
- name: Create Necessary File for Building Project
run: cat /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json | base64
- name: Putting Data into Created File.
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA > /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json
- name: Clean Project
run: ./gradlew clean
- name: Build with Gradle
run: ./gradlew build