From 51fa7c0c3458d7f0dc2f717f56871759c66c154d Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 10 Nov 2022 16:24:57 -0700 Subject: [PATCH] remove dry-run on sync script; replace with -c for partial build --- .github/actions/publish-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/publish-docs.sh b/.github/actions/publish-docs.sh index 0f46bfea71..7db8dffb05 100755 --- a/.github/actions/publish-docs.sh +++ b/.github/actions/publish-docs.sh @@ -20,7 +20,7 @@ fi echo "$SSH_KNOWN_HOST" > ~/.ssh/known_hosts RSYNC_OPTS='-avz --delete' if [ -n "$BUILD_REFNAME" ]; then - RSYNC_OPTS="-n $RSYNC_OPTS$(find $FROM -mindepth 1 -maxdepth 1 \! -name 404.html \! -name '.*' -type f -printf ' --include /%P')" + RSYNC_OPTS="-c $RSYNC_OPTS$(find $FROM -mindepth 1 -maxdepth 1 \! -name 404.html \! -name '.*' -type f -printf ' --include /%P')" RSYNC_OPTS="$RSYNC_OPTS$(find $FROM -mindepth 1 -maxdepth 1 -type d \! -name _ -printf ' --include /%P --include /%P/**') --exclude **" fi rsync $RSYNC_OPTS -e "ssh -i $SSH_PRIVATE_KEY_PATH" $FROM/ "$HOST:$HOST_PATH"