Action: Change write file and attempt to fix app signing
This commit is contained in:
parent
6ec656b094
commit
d800528550
32
.github/workflows/android-debug.yml
vendored
32
.github/workflows/android-debug.yml
vendored
@ -18,32 +18,24 @@ jobs:
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Get NDK
|
||||
run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
|
||||
#- name: Android NDK toolchain Setup
|
||||
#uses: ravinderjangra/android-ndk-toolchain-setup@0.2
|
||||
#with:
|
||||
# Android API
|
||||
#api: 20 # default is 21
|
||||
# Platform arch
|
||||
#arch: x86
|
||||
# Path to use for NDK toolchain
|
||||
#install-location: toolchains
|
||||
# Force install toolchain
|
||||
#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 }}
|
||||
run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
|
||||
- name: Create
|
||||
- name: Write google-services.json
|
||||
uses: DamianReeves/write-file-action@v1.0
|
||||
with:
|
||||
# The path to the file to write
|
||||
path: app/google-services.json
|
||||
# The contents of the file
|
||||
contents: ${{ secrets.GOOGLE_SERVICES_TEXT }}
|
||||
# The mode of writing to use: `overwrite`, `append`, or `preserve`.
|
||||
write-mode: overwrite # optional, default is preserve
|
||||
- name: Build Release APK
|
||||
run: bash ./gradlew assembleRelease --stacktrace
|
||||
- name: Sign Android release
|
||||
uses: r0adkll/sign-android-release@v1
|
||||
with:
|
||||
# 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
|
||||
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
|
||||
# The key alias
|
||||
|
Loading…
x
Reference in New Issue
Block a user