sync
This commit is contained in:
parent
15ee431bb4
commit
ff173f91a0
1 changed files with 16 additions and 0 deletions
16
sync
Executable file
16
sync
Executable file
|
@ -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}/"
|
Loading…
Reference in a new issue