From ff173f91a08211a9c32339ffa2fa1c13f5942c7c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 22 Mar 2024 23:45:25 +0100 Subject: [PATCH] sync --- sync | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 sync diff --git a/sync b/sync new file mode 100755 index 0000000..d06aaa5 --- /dev/null +++ b/sync @@ -0,0 +1,16 @@ +apt-get install 'rsync' + +mkdir --parents ~/.ssh +echo '${{secrets.cd}}' > ~/.ssh/id_ed25519 +chmod 400 ~/.ssh/id_ed25519 + +ssh \ +-o StrictHostKeyChecking=accept-new \ +'cd@de.tilde.link' -- hostname + +rsync \ +--archive \ +--delete-before \ +--verbose \ +'out/' \ +"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"