mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-05 15:45:42 +02:00
* 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 06f6bc0e8c
.
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
12 lines
450 B
Bash
Executable file
12 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
|