Action: Change write file and attempt to fix app signing

This commit is contained in:
jobobby04 2020-05-09 20:52:27 -04:00 committed by GitHub
parent 6ec656b094
commit d800528550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,31 +19,23 @@ jobs:
java-version: 1.8 java-version: 1.8
- name: Get NDK - name: Get NDK
run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570" run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
#- name: Android NDK toolchain Setup - name: Create
#uses: ravinderjangra/android-ndk-toolchain-setup@0.2 - name: Write google-services.json
#with: uses: DamianReeves/write-file-action@v1.0
# Android API with:
#api: 20 # default is 21 # The path to the file to write
# Platform arch path: app/google-services.json
#arch: x86 # The contents of the file
# Path to use for NDK toolchain contents: ${{ secrets.GOOGLE_SERVICES_TEXT }}
#install-location: toolchains # The mode of writing to use: `overwrite`, `append`, or `preserve`.
# Force install toolchain write-mode: overwrite # optional, default is preserve
#force: true # optional, default is false
# Add toolchain to the path
#add-to-path: true # optional, default is true
- name: Create google-services.json
uses: finnp/create-file-action@1.0.0
env:
FILE_NAME: "app/google-services.json"
FILE_DATA: ${{ secrets.GOOGLE_SERVICES_TEXT }}
- name: Build Release APK - name: Build Release APK
run: bash ./gradlew assembleRelease --stacktrace run: bash ./gradlew assembleRelease --stacktrace
- name: Sign Android release - name: Sign Android release
uses: r0adkll/sign-android-release@v1 uses: r0adkll/sign-android-release@v1
with: with:
# The directory to find your release to sign # The directory to find your release to sign
releaseDirectory: app/build/outputs/apk/release releaseDirectory: app/build/outputs/apk/standard/release
# The key used to sign your release in base64 encoded format # The key used to sign your release in base64 encoded format
signingKeyBase64: ${{ secrets.SIGNING_KEY }} signingKeyBase64: ${{ secrets.SIGNING_KEY }}
# The key alias # The key alias