Skip to content

Commit

Permalink
fix upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo committed Dec 5, 2023
1 parent 5b651b9 commit b0ee277
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ci/emscripten/examples_to_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ fi

if [ "$DO_UPLOAD" = "true" ]; then
echo "upload 2/2 - time for rsync"

SERVER_PUBLIC_KEY=$(ssh-keyscan -p 22 openFrameworks.cc)
echo "$SERVER_PUBLIC_KEY" >> "$HOME/.ssh/known_hosts"

remote_path="/home/ofadmin/openFrameworks.cc/examples/"
rsync -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
rsync --chmod=Du=rwx,Dg=rwx,Do=rx,Fu=rw,Fg=rw,Fo=r -avz -e "ssh -i $key_file" "$out_folder/" "$GA_EXAMPLES_USER@$GA_EXAMPLES_SERVER:$remote_path"
rm -f "$key_file"
fi

0 comments on commit b0ee277

Please sign in to comment.