Add signing to nightly build workflow
This commit is contained in:
parent
63f192ae1d
commit
a6b838f322
54
.github/workflows/android.yml
vendored
54
.github/workflows/android.yml
vendored
@ -7,25 +7,41 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: set up JDK 11
|
- name: set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
- name: Setup Gradle Cache
|
||||||
- name: Grant execute permission for gradlew
|
uses: actions/cache@v2
|
||||||
run: chmod +x gradlew
|
with:
|
||||||
- name: Build APK
|
path: |
|
||||||
run: ./gradlew assembleDefaultNightly
|
~/.gradle/caches
|
||||||
- name: Upload APK
|
~/.gradle/wrapper
|
||||||
uses: actions/upload-artifact@v1
|
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
|
||||||
with:
|
- name: Grant execute permission for gradlew
|
||||||
name: flavorName.apk
|
run: chmod +x gradlew
|
||||||
path: app/app/build/outputs/apk/default/nightly/app-default-nightly.apk
|
- name: Decode Keystore
|
||||||
|
env:
|
||||||
|
ENCODED_STRING: ${{ secrets.KEYSTORE }}
|
||||||
|
run: |
|
||||||
|
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
|
||||||
|
mkdir "${TMP_KEYSTORE_FILE_PATH}"
|
||||||
|
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/keystore.jks
|
||||||
|
- name: Build and sign APK
|
||||||
|
run: ./gradlew
|
||||||
|
-PKEYSTORE_FILE="${RUNNER_TEMP}/keystore/keystore.jks"
|
||||||
|
-PKEYSTORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
|
-PSIGNING_KEY_ALIAS=${{ secrets.SIGNING_KEY_ALIAS }}
|
||||||
|
-PSIGNING_KEY_PASSWORD=${{ secrets.SIGNING_KEY_PASSWORD }}
|
||||||
|
assembleDefaultNightly
|
||||||
|
- name: Upload APK
|
||||||
|
uses: actions/upload-artifact@v1
|
||||||
|
with:
|
||||||
|
name: de.mm20.launcher2.nightly.apk
|
||||||
|
path: app/app/build/outputs/apk/default/nightly/app-default-nightly.apk
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user