-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15e8705
commit 28a23dd
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
if [[ "$BRANCH" != "master" ]]; then | ||
echo 'Not deploying the website'; | ||
exit 0; | ||
else | ||
git config --global user.email "$GIT_USER@users.noreply.github.com"; | ||
git config --global user.name "Wix"; | ||
echo "machine github.com login $GIT_USER password $GIT_TOKEN" > ~/.netrc; | ||
cd website; | ||
npm install; | ||
GIT_USER=$GIT_USER CURRENT_BRANCH=master npm run publish-gh-pages; | ||
fi |