Skip to content

[release] v 1.0.3

[release] v 1.0.3 #62

Workflow file for this run

name: Android Build CI
on:
pull_request:
branches: [ develop, main ]
jobs:
build:
runs-on: ubuntu-latest
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
STORE_PATH: ${{secrets.STORE_PATH}}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
BASE_URL: ${{secrets.BASE_URL}}
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: BASE_URL
run: |
echo BASE_URL=$BASE_URL > local.properties
shell: bash
env:
API_KEY: ${{ secrets.BASE_URL }}
- name: Download Android keystore
id: android_keystore
uses: timheuer/[email protected]
with:
fileName: key
encodedString: ${{ secrets.STORE_FILE }}
- run: echo $STORE_FILE | base64 -d > /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/app/key
- name: Create key.properties
run: |
echo "STORE_PATH=${{ secrets.STORE_PATH }}" >> local.properties
echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> local.properties
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> local.properties
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> local.properties
- name: Ktlint Check
run: ./gradlew --no-daemon ktlintCheck --continue
- name: Create Google service file
run: cat /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/app/google-services.json | base64
- name: Putting data
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -d > /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/app/google-services.json
- name: Build with Gradle
run: ./gradlew build