This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user