diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e098f8c..88fcc5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,10 +25,10 @@ jobs: - name: Build release APK run: | ./gradlew assembleRelease - $ANDROID_SDK_ROOT/build-tools/30.0.2/zipalign -v -p 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk + $ANDROID_SDK_ROOT/build-tools/*/zipalign -v -p 4 app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > keystore.jks - echo "${{ secrets.KEYSTORE_PASSWORD }}" | $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner sign --ks keystore.jks --out app-release.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk - $ANDROID_SDK_ROOT/build-tools/30.0.2/apksigner verify app-release.apk + echo "${{ secrets.KEYSTORE_PASSWORD }}" | $ANDROID_SDK_ROOT/build-tools/*/apksigner sign --ks keystore.jks --out app-release.apk app/build/outputs/apk/release/app-release-unsigned-aligned.apk + $ANDROID_SDK_ROOT/build-tools/*/apksigner verify app-release.apk - name: Parse tag id: parse_tag run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'"