-
Notifications
You must be signed in to change notification settings - Fork 49
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
1 changed file
with
7 additions
and
5 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,12 +1,14 @@ | ||
#!/bin/bash | ||
cd web | ||
bundle exec middleman build --verbose | ||
echo | ||
echo 'middleman finished' | ||
cd .. | ||
echo "Don't forget to run" | ||
echo "cd web; bundle exec middleman build; cd .." | ||
|
||
git checkout gh-pages # switch to gh-pages branch | ||
|
||
git checkout master -- web/build # checkout just the web/build folder from master | ||
cp -r web/build/* . # TODO Make elegant | ||
git add . # commit the changes | ||
git commit -m "Picky website update" # commit the changes | ||
git push -n # | ||
git push # | ||
|
||
git checkout master # go back to the master branch |