Skip to content

Test

Test #40

Workflow file for this run

name: Test
on:
workflow_dispatch:
jobs:
build_app:
name: Build Android App
runs-on: ubuntu-latest
defaults:
run:
working-directory: android-app
steps:
- uses: actions/checkout@v3
- run: git pull
- uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- name: Create relese.jks
run: mkdir ~/.android && echo "$release_jks" | base64 -d > ~/.android/release.jks
env:
release_jks: ${{ secrets.RELEASE_JKS }}
- name: Create keystore.properties
run: echo -e "storeFile=$(ls ~/.android/release.jks)\nstorePassword=${store_pass}\nkeyAlias=${key_alias}\nkeyPassword=${key_pass}\n" > keystore.properties
env:
store_pass: ${{ secrets.STORE_PASS }}
key_alias: ${{ secrets.KEY_ALIAS }}
key_pass: ${{ secrets.KEY_PASS }}
- run: chmod +x gradlew
- run: ./gradlew :app:assembleRelease
- run: ./gradlew :app:signingReport
- name: Checksum
run: cd app/build/outputs/apk/release/ && sha256sum *.apk | tee $(ls *.apk).sha256