Skip to content

Commit ab5b9bc

Browse files
committed
Always update the gitignore when deploying
1 parent e14a9f1 commit ab5b9bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

deploy-site.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ npm run generate-site
99
git fetch origin gh-pages
1010
git checkout -B gh-pages origin/gh-pages
1111
rm `git ls-files | grep -v '^\.gitignore$'`
12-
if [ ! -f ".gitignore" ]; then
13-
echo "node_modules" > .gitignore
14-
fi
12+
printf "node_modules\nsite-build\n" > .gitignore
1513
cp -r site-build/* .
1614
if [ "`git status --porcelain`" != "" ]; then \
1715
(git add -A . && \

0 commit comments

Comments
 (0)