e61551bf37
* Setup snapshot deployment * README: Update repository links * README: Update workflow badge link * README: Add link to Snapshot builds * Fix snapshot/pull-request build conflict * Deploy from feature/deploy-snapshots as well * Revert "Deploy from feature/deploy-snapshots as well" Confirmed it works well This reverts commit 06f6bc0e8c19f238643655d09ca20f83dd416283. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
11 lines
450 B
Bash
Executable file
11 lines
450 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
export SSHDIR="$HOME/.ssh"
|
|
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/release"
|
|
rm output.json
|
|
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" || true
|
|
exit 0
|