Skip to content

Commit c1cb21e

Browse files
committed
Tests
1 parent b45d5b6 commit c1cb21e

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

deploy.sh

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -131,34 +131,32 @@ 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+
echo "ℹ︎ Included files"
149149

150-
# echo "ℹ︎ Included files"
150+
cat included-files.txt
151151

152-
# cat included-files.txt
152+
cd "$SVN_DIR"
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
160-
161-
rsync -rcv --filter="merge,- $GITHUB_WORKSPACE/.distignore" "$GITHUB_WORKSPACE/" trunk/ --delete --itemize-changes
159+
rsync -rcv --files-from=$GITHUB_WORKSPACE/included-files.txt "$GITHUB_WORKSPACE/" trunk/ --delete --itemize-changes
162160

163161
echo "ℹ︎ LS current dir"
164162

0 commit comments

Comments
 (0)