cleanup for Copy APKs workflow
All checks were successful
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Successful in 6m59s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s

This commit is contained in:
2025-12-09 19:51:41 +01:00
parent 48165c9679
commit 1fa2e36ce6

View File

@@ -40,8 +40,11 @@ jobs:
export APKS=$(find src -type f -name "*.apk")
echo "Found APKs: $APKS"
export APK_DIRS=$(dirname $APKS | sort -u)
echo "APK directories: $APK_DIRS"
for dir in $APK_DIRS; do
mkdir -p /prod/data/apk/$dir
cp $dir/*.apk /prod/data/apk/$dir/
# We only need the first and last part of the path
# e.g., src/FastAdmin/app/build/outputs/apk/release -> FastAdmin/release
pkg_dir=$(echo $dir | awk -F'/' '{print $2 "/" $NF}')
mkdir -p /prod/data/apk/$pkg_dir
cp $dir/*.apk /prod/data/apk/$pkg_dir/
done