Skip to content

Commit

Permalink
add exit status handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stomita committed Jan 16, 2015
1 parent 4a42781 commit 2327ac5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
NODE_ENV=production docpad generate
exit $?
28 changes: 14 additions & 14 deletions bin/release.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/sh
git config user.name ${GIT_NAME}
git config user.email ${GIT_EMAIL}
git config credential.helper "store --file=.git/credentials"
echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
git checkout -b release
git add out --force
git commit -am "Generate Website from docpad"
echo "Adding remote : ${GITHUB_PAGES_GIT_URL}"
git remote add pages ${GITHUB_PAGES_GIT_URL}
git push pages `git subtree split --prefix out release`:master --force
git remote remove pages
git checkout master
git branch -D release
git config user.name ${GIT_NAME} &&
git config user.email ${GIT_EMAIL} &&
git config credential.helper "store --file=.git/credentials" &&
echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials &&
git checkout -b release &&
git add out --force &&
git commit -am "Generate Website from docpad" &&
echo "Adding remote : ${GITHUB_PAGES_GIT_URL}" &&
git remote add pages ${GITHUB_PAGES_GIT_URL} &&
git push pages `git subtree split --prefix out release`:master --force &&
git remote remove pages &&
git checkout master &&
git branch -D release &&
rm .git/credentials

exit $?

0 comments on commit 2327ac5

Please sign in to comment.