cleanup for Copy APKs workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user