-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
2 changed files
with
15 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/bin/sh | ||
NODE_ENV=production docpad generate | ||
exit $? |
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 |
---|---|---|
@@ -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 $? |