Add signing and version code.
Some checks failed
Build Android / build (push) Failing after 10m19s

This commit is contained in:
2023-06-25 19:51:40 +02:00
parent a45043424e
commit 81c540c2a5

View File

@@ -6,11 +6,27 @@ jobs:
steps: steps:
- name: Checkout the code - name: Checkout the code
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: set up JDK - name: set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: gradle cache: gradle
- name: Prepare signing
run: |
touch keystore.properties
echo "storePassword=$STOREPASSWORD" >> keystore.properties
echo "keyPassword=$KEYPASSWORD" >> keystore.properties
echo "keyAlias=key0" >> keystore.properties
echo "storeFile=../AndroidKey" >> keystore.properties
- name: Generate versionCode
run: |
touch version.properties
let timestamp=$(date +%s)/10
echo "versionCode=$timestamp" >> version.properties
- name: Build the app - name: Build the app
run: ./gradlew build run: ./gradlew build