From 9fb492b572d7807450f0752c6222fe0e246acea9 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 2 Jul 2020 23:53:31 +0530 Subject: Deploy both variants to snapshot directory (#914) * Deploy both free and non-free variants Signed-off-by: Harsh Shandilya * build: add product flavor to APK name Signed-off-by: Harsh Shandilya --- release/deploy-snapshot.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'release/deploy-snapshot.sh') diff --git a/release/deploy-snapshot.sh b/release/deploy-snapshot.sh index 3687ea46..6d9cfdbb 100755 --- a/release/deploy-snapshot.sh +++ b/release/deploy-snapshot.sh @@ -5,7 +5,9 @@ mkdir -p "$SSHDIR" echo "$ACTIONS_DEPLOY_KEY" > "$SSHDIR/key" chmod 600 "$SSHDIR/key" export SERVER_DEPLOY_STRING="$SSH_USERNAME@$SERVER_ADDRESS:$SERVER_DESTINATION" -cd "$GITHUB_WORKSPACE/app/build/outputs/apk/free/release" -rm output.json +mkdir -p "$GITHUB_WORKSPACE/APS" +cp -v "$GITHUB_WORKSPACE/app/build/outputs/apk/free/release/*.apk" "$GITHUB_WORKSPACE/APS" +cp -v "$GITHUB_WORKSPACE/app/build/outputs/apk/nonFree/release/*.apk" "$GITHUB_WORKSPACE/APS" +cd "$GITHUB_WORKSPACE/APS" rsync -ahvcr --omit-dir-times --progress --delete --no-o --no-g -e "ssh -i $SSHDIR/key -o StrictHostKeyChecking=no -p $SSH_PORT" . "$SERVER_DEPLOY_STRING" || exit 1 exit 0 -- cgit v1.2.3