From 0fbc2c86d815c3efd670f7d0b44bbfd1065da2fb Mon Sep 17 00:00:00 2001 From: Tung Du Date: Thu, 17 Mar 2022 18:17:11 +0700 Subject: [PATCH] fix: rsync needs full dir path with trailing slash --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index e40d6b2..2cf4f19 100755 --- a/deploy.sh +++ b/deploy.sh @@ -46,7 +46,7 @@ fi if [[ "$BUILD_DIR" != false ]]; then if [[ $BUILD_DIR != /* ]]; then - BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR}" + BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR%/}" fi echo "ℹ︎ BUILD_DIR is $BUILD_DIR" fi @@ -108,7 +108,7 @@ if [[ "$BUILD_DIR" = false ]]; then fi else echo "ℹ︎ Copying files from build directory..." - rsync -rc "$BUILD_DIR" trunk/ --delete --delete-excluded + rsync -rc "$BUILD_DIR/" trunk/ --delete --delete-excluded fi # Copy dotorg assets to /assets