mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
ci: Full path for tools
This commit is contained in:
parent
0816d31a46
commit
f461ebb204
1 changed files with 3 additions and 4 deletions
7
.github/workflows/build_push.yml
vendored
7
.github/workflows/build_push.yml
vendored
|
@ -31,8 +31,6 @@ jobs:
|
|||
- name: Setup Android SDK
|
||||
run: |
|
||||
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3"
|
||||
ls ${ANDROID_SDK_ROOT}/build-tools/*
|
||||
exit 1
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: null2264/actions/gradle-setup@b697b0b95bb90ab23c1145b744dddd2fd3e3a838
|
||||
|
@ -102,6 +100,7 @@ jobs:
|
|||
- name: Sign APK
|
||||
if: env.VERSION_TAG != ''
|
||||
run: |
|
||||
BUILD_TOOLS="${ANDROID_SDK_ROOT}/build-tools/29.0.3"
|
||||
APK_DIR=app/build/outputs/apk/standard/${{ startsWith(env.VERSION_TAG, 'v') && 'release' || 'nightly' }}
|
||||
|
||||
echo "${{ secrets.SIGNING_KEY }}" | base64 -d > /tmp/signingkey.jks
|
||||
|
@ -111,8 +110,8 @@ jobs:
|
|||
for i in "${APKS[@]}"; do
|
||||
echo "Compiling ${i}"
|
||||
SIGNED_NAME="$(echo $i | sed 's/.apk$/-signed.apk/g')"
|
||||
zipalign -p -f -v 4 $i "${i}.aligned"
|
||||
apksigner sign \
|
||||
$BUILD_TOOLS/zipalign -p -f -v 4 $i "${i}.aligned"
|
||||
$BUILD_TOOLS/apksigner sign \
|
||||
--ks /tmp/signingkey.jks \
|
||||
--out $SIGNED_NAME \
|
||||
--ks-key-alias "${{ secrets.ALIAS }}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue