Skip to content

Commit a5156c8

Browse files
committed
restore workflow
1 parent b388071 commit a5156c8

1 file changed

Lines changed: 2 additions & 27 deletions

File tree

.github/workflows/preview.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,9 @@ jobs:
6060
export LOCAL_PROPERTIES="${{ secrets.LOCAL_PROPERTIES }}"
6161
./run init action gradle
6262
./gradlew app:assemblePreviewRelease
63-
64-
# Sign unsigned APKs with default debug keystore
65-
if [ ! -f ~/.android/debug.keystore ]; then
66-
echo "Generating debug.keystore..."
67-
mkdir -p ~/.android
68-
keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
69-
fi
70-
71-
APKSIGNER=$(find ${ANDROID_HOME}/build-tools -name apksigner | sort -V | tail -n 1)
72-
if [ -z "$APKSIGNER" ]; then
73-
APKSIGNER="apksigner"
74-
fi
75-
echo "Using apksigner: $APKSIGNER"
76-
7763
APK=$(find app/build/outputs/apk -name '*arm64-v8a*.apk')
78-
APK_DIR=$(dirname $APK)
79-
80-
echo "Signing APKs in $APK_DIR..."
81-
for apk in "$APK_DIR"/*-unsigned.apk; do
82-
if [ -f "$apk" ]; then
83-
signed_apk="${apk%-unsigned.apk}-debug-signed.apk"
84-
echo "Signing $apk -> $signed_apk"
85-
$APKSIGNER sign --ks ~/.android/debug.keystore --ks-pass pass:android --key-pass pass:android --out "$signed_apk" "$apk"
86-
rm "$apk"
87-
fi
88-
done
89-
90-
echo "APK=$APK_DIR" >> $GITHUB_ENV
64+
APK=$(dirname $APK)
65+
echo "APK=$APK" >> $GITHUB_ENV
9166
- uses: actions/upload-artifact@v5
9267
with:
9368
name: APKs

0 commit comments

Comments
 (0)