forked from floere/picky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish
executable file
·30 lines (26 loc) · 835 Bytes
/
publish
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# TODO Completely rewrite all.
#
echo
echo "Don't forget to run"
echo "cd web; bundle exec middleman build; cd .."
# Old picky pages.
#
git branch -D gh-pages
git checkout -b gh-pages # switch to new 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 -f origin gh-pages #
git checkout master # go back to the master branch
# New picky page.
#
cd ../pickyrb.com
cp -r ../picky/web/build/* .
git checkout master
echo 'pickyrb.com' > CNAME # Add CNAME file.
git add .
git commit -m "Picky website update"
git push origin master
cd ../picky