Skip to content

Commit

Permalink
Merge branch 'hotfix/Fix_find_syntax'
Browse files Browse the repository at this point in the history
  • Loading branch information
l443018 committed Nov 14, 2017
2 parents 466859f + 28cf7ae commit d9b6731
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ git push --tag --force origin-pages || exit 1
# Git clone
git clone -b $DEPLOY_BRANCH --single-branch "https://${GH_REPO}" $DEPLOY_FOLDER

# Clean up files from last build(except .git)
find ./$DEPLOY_FOLDER/* ./$DEPLOY_FOLDER/.* ! -path "./${DEPLOY_FOLDER}/.git/*" ! -name ".git" | xargs rm -rf
# Clean up directorys / files from last build (except .git/*)
find ./$DEPLOY_FOLDER -type d ! -path "*/.git*" ! -path "./$DEPLOY_FOLDER" | xargs rm -rf
find ./$DEPLOY_FOLDER -type f ! -path "*/.git/*" | xargs rm -rf

# Copy built files
cp -R ./build/. ./$DEPLOY_FOLDER
Expand Down

0 comments on commit d9b6731

Please sign in to comment.