Skip to content

Commit

Permalink
+ publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed Oct 27, 2012
1 parent 9fa7188 commit af3f61b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions publish
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

0 comments on commit af3f61b

Please sign in to comment.