Skip to content

Commit

Permalink
Download deploy gitignore if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanshoover committed May 7, 2019
1 parent ffc3aa9 commit 40e49db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,13 @@ jobs:
- run:
name: Swap our gitignore files
command: |
[ -f ./.gitignores/__deployment ] && rm -f .gitignore && ln -s ./.gitignores/__deployment .gitignore
if [ -f ./.gitignores/__deployment ]; then
rm -f .gitignore
ln -s ./.gitignores/__deployment .gitignore
else
rm -f .gitignore
wget -nc -O .gitignore https://raw.githubusercontent.com/ryanshoover/orb-wpengine-deploy/master/lib/deploy.gitignore
fi
- run:
name: Remove git files from packages to ensure correct deployment.
command: rm -rf wp-content/{mu-plugins,plugins,themes}/*/.git*
Expand Down

0 comments on commit 40e49db

Please sign in to comment.