@@ -130,11 +130,44 @@ if [[ "$BUILD_DIR" = false ]]; then
130130 echo " ➤ Copying files..."
131131 if [[ -e " $GITHUB_WORKSPACE /.distignore" ]]; then
132132 echo " ℹ︎ Using .distignore"
133+
134+ rm -rf " $GITHUB_WORKSPACE /.git"
135+
136+ rm " $GITHUB_WORKSPACE /.gitignore"
137+
138+ cp " $GITHUB_WORKSPACE /.distignore" " $GITHUB_WORKSPACE /.gitignore"
139+
140+ cd " $GITHUB_WORKSPACE "
141+
142+ git init
143+
144+ git add . > /dev/null 2>&1
145+
146+ git ls-files > ../included-files.txt
147+
148+ cd ..
149+
150+ echo " ℹ︎ Included files"
151+
152+ cat included-files.txt
153+
133154 # Copy from current branch to /trunk, excluding dotorg assets
134155 # The --filter flag will allow the full .gitignore syntax to be used in .distignore
135156 # The --delete flag will delete anything in destination that no longer exists in source
136157 # The --itemize-changes flag will show the changes made to each file
137- rsync -rcv --filter=" merge,- $GITHUB_WORKSPACE /.distignore" " $GITHUB_WORKSPACE /" trunk/ --delete --itemize-changes
158+
159+ rsync -rcv --files-from=included-files.txt " $GITHUB_WORKSPACE /" trunk/ --delete --itemize-changes
160+
161+ echo " ℹ︎ LS current dir"
162+
163+ ls
164+
165+ echo " ℹ︎ LS trunk"
166+
167+ ls trunk/
168+
169+ echo " ℹ︎ Working dir"
170+ pwd
138171 else
139172 echo " ℹ︎ Using .gitattributes"
140173
199232# The force flag ensures we recurse into subdirectories even if they are already added
200233# Suppress stdout in favor of svn status later for readability
201234echo " ➤ Preparing files..."
235+
236+ echo " ℹ︎ Preparing files pwd"
237+ pwd
238+
239+
202240svn add . --force > /dev/null
203241
204242# SVN delete all deleted files
0 commit comments