[release] version 1.0.0 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Build CI | |
on: | |
pull_request: | |
branches: [ develop, main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
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: STORE_FILE | |
run: | | |
echo STORE_FILE=$STORE_FILE > local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.KEY_PATH }} | |
- name: KEY_PASSWORD | |
run: | | |
echo KEY_PASSWORD=$KEY_PASSWORD > local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.BASE_URL }} | |
- name: KEY_ALIAS | |
run: | | |
echo KEY_ALIAS=$KEY_ALIAS > local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.BASE_URL }} | |
- name: STORE_PASSWORD | |
run: | | |
echo STORE_PASSWORD=$STORE_PASSWORD > local.properties | |
shell: bash | |
env: | |
API_KEY: ${{ secrets.BASE_URL }} | |
- name: Create properties file | |
run: cat /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/local.properties | |
- name: Putting properties data | |
env: | |
DATA: ${{ secrets.LOCAL_PROPERTIES }} | |
run: echo $DATA > /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/local.properties | |
- name: Ktlint Check | |
run: ./gradlew --no-daemon ktlintCheck --continue | |
- name: Create 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 > /home/runner/work/Don-t-Forget---Android/Don-t-Forget---Android/app/google-services.json | |
- name: Build with Gradle | |
run: ./gradlew build |