Skip to content

Update dependency gradle to v8.10.2 #129

Update dependency gradle to v8.10.2

Update dependency gradle to v8.10.2 #129

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
# https://github.com/orgs/community/discussions/26351#discussioncomment-3251595
- name: Free Disk Space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo apt clean
docker rmi $(docker image ls -aq)
df -h
# https://www.droidcon.com/2023/04/04/securely-create-android-release-using-github-actions/
- name: Decode Keystore and Google Service file
env:
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_FILE }}
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo $ENCODED_KEYSTORE | base64 -d > ./BudgetKey
echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > ./app/google-services.json
- name: Echo Secrets
env:
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
run: |
echo KEYSTORE_PATH=./BudgetKey > ./local.properties
echo KEYSTORE_ALIAS=$KEYSTORE_ALIAS >> ./local.properties
echo KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD >> ./local.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build