diff --git a/deploy.sh b/deploy.sh index 3cd1cb4..1f5e7f8 100644 --- a/deploy.sh +++ b/deploy.sh @@ -26,10 +26,8 @@ svn status | grep '^[!?]' | while IFS= read -r line; do status="${line:0:1}" file="${line:8}" if [ "$status" = "!" ]; then - echo "Deleting: $file" svn delete "$file" elif [ "$status" = "?" ]; then - echo "Adding: $file" svn add "$file" fi done @@ -69,6 +67,17 @@ svn update --set-depth infinity tags/$VERSION # Copy files from release to `svn/trunk` rsync -rcm --exclude-from="$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete --delete-excluded +# Detect and schedule additions and deletions in SVN +svn status | grep '^[!?]' | while IFS= read -r line; do + status="${line:0:1}" + file="${line:8}" + if [ "$status" = "!" ]; then + svn delete "$file" + elif [ "$status" = "?" ]; then + svn add "$file" + fi +done + # Prepare the files for commit in SVN svn add --force trunk