2019-12-15 21:49:18 +00:00
|
|
|
#!/usr/bin/env sh
|
2021-03-09 09:15:27 +00:00
|
|
|
#
|
|
|
|
# Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved.
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#
|
|
|
|
|
2020-07-03 05:03:17 +00:00
|
|
|
set -ex
|
2019-12-15 21:49:18 +00:00
|
|
|
|
|
|
|
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"
|
2022-02-23 08:55:03 +00:00
|
|
|
cd "$GITHUB_WORKSPACE/app/outputs/"
|
2020-07-03 05:03:17 +00:00
|
|
|
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"
|