mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-22 06:17:37 +00:00
remove dry-run on sync script; replace with -c for partial build
This commit is contained in:
parent
7491f8a76d
commit
51fa7c0c34
2
.github/actions/publish-docs.sh
vendored
2
.github/actions/publish-docs.sh
vendored
@ -20,7 +20,7 @@ fi
|
|||||||
echo "$SSH_KNOWN_HOST" > ~/.ssh/known_hosts
|
echo "$SSH_KNOWN_HOST" > ~/.ssh/known_hosts
|
||||||
RSYNC_OPTS='-avz --delete'
|
RSYNC_OPTS='-avz --delete'
|
||||||
if [ -n "$BUILD_REFNAME" ]; then
|
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 **"
|
RSYNC_OPTS="$RSYNC_OPTS$(find $FROM -mindepth 1 -maxdepth 1 -type d \! -name _ -printf ' --include /%P --include /%P/**') --exclude **"
|
||||||
fi
|
fi
|
||||||
rsync $RSYNC_OPTS -e "ssh -i $SSH_PRIVATE_KEY_PATH" $FROM/ "$HOST:$HOST_PATH"
|
rsync $RSYNC_OPTS -e "ssh -i $SSH_PRIVATE_KEY_PATH" $FROM/ "$HOST:$HOST_PATH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user