@@ -131,32 +131,34 @@ if [[ "$BUILD_DIR" = false ]]; then
131131 if [[ -e " $GITHUB_WORKSPACE /.distignore" ]]; then
132132 echo " ℹ︎ Using .distignore"
133133
134- rm -rf " $GITHUB_WORKSPACE /.git"
134+ # rm -rf "$GITHUB_WORKSPACE/.git"
135135
136- rm " $GITHUB_WORKSPACE /.gitignore"
136+ # rm "$GITHUB_WORKSPACE/.gitignore"
137137
138- cp " $GITHUB_WORKSPACE /.distignore" " $GITHUB_WORKSPACE /.gitignore"
138+ # cp "$GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/.gitignore"
139139
140- cd " $GITHUB_WORKSPACE "
140+ # cd "$GITHUB_WORKSPACE"
141141
142- git init
142+ # git init
143143
144- git add . > /dev/null 2>&1
144+ # git add . > /dev/null 2>&1
145145
146- git ls-files > ../included-files.txt
146+ # git ls-files > ../included-files.txt
147147
148- cd ..
148+ # cd ..
149149
150- echo " ℹ︎ Included files"
150+ # echo "ℹ︎ Included files"
151151
152- cat included-files.txt
152+ # cat included-files.txt
153153
154154 # Copy from current branch to /trunk, excluding dotorg assets
155155 # The --filter flag will allow the full .gitignore syntax to be used in .distignore
156156 # The --delete flag will delete anything in destination that no longer exists in source
157157 # The --itemize-changes flag will show the changes made to each file
158158
159- rsync -rcv --files-from=included-files.txt " $GITHUB_WORKSPACE /" trunk/ --delete --itemize-changes
159+ # rsync -rcv --files-from=included-files.txt "$GITHUB_WORKSPACE/" trunk/ --delete --itemize-changes
160+
161+ rsync -rcv --filter=" merge,- $GITHUB_WORKSPACE /.distignore" " $GITHUB_WORKSPACE /" trunk/ --delete --itemize-changes
160162
161163 echo " ℹ︎ LS current dir"
162164
0 commit comments