aboutsummaryrefslogtreecommitdiff
path: root/release/deploy-snapshot.sh
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-07-03 10:33:17 +0530
committerGitHub <noreply@github.com>2020-07-03 07:03:17 +0200
commitff3d2fcce3f1d74bdb1e13e3634f1ea9a9f9f1e5 (patch)
treee93a9e60223020c47c0eaf397bc30f1e59db3ea9 /release/deploy-snapshot.sh
parent9fb492b572d7807450f0752c6222fe0e246acea9 (diff)
release: script improvements (#915)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'release/deploy-snapshot.sh')
-rwxr-xr-xrelease/deploy-snapshot.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/deploy-snapshot.sh b/release/deploy-snapshot.sh
index 6d9cfdbb..80606f67 100755
--- a/release/deploy-snapshot.sh
+++ b/release/deploy-snapshot.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
+set -ex
export SSHDIR="$HOME/.ssh"
mkdir -p "$SSHDIR"
@@ -6,8 +7,7 @@ echo "$ACTIONS_DEPLOY_KEY" > "$SSHDIR/key"
chmod 600 "$SSHDIR/key"
export SERVER_DEPLOY_STRING="$SSH_USERNAME@$SERVER_ADDRESS:$SERVER_DESTINATION"
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"
+cp -v ./app/build/outputs/apk/free/release/*.apk "$GITHUB_WORKSPACE/APS/"
+cp -v ./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
+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"