Skip to content

Commit 0fbc2c8

Browse files
committed
fix: rsync needs full dir path with trailing slash
1 parent 2a5e2c1 commit 0fbc2c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fi
4646

4747
if [[ "$BUILD_DIR" != false ]]; then
4848
if [[ $BUILD_DIR != /* ]]; then
49-
BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR}"
49+
BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR%/}"
5050
fi
5151
echo "ℹ︎ BUILD_DIR is $BUILD_DIR"
5252
fi
@@ -108,7 +108,7 @@ if [[ "$BUILD_DIR" = false ]]; then
108108
fi
109109
else
110110
echo "ℹ︎ Copying files from build directory..."
111-
rsync -rc "$BUILD_DIR" trunk/ --delete --delete-excluded
111+
rsync -rc "$BUILD_DIR/" trunk/ --delete --delete-excluded
112112
fi
113113

114114
# Copy dotorg assets to /assets

0 commit comments

Comments
 (0)