File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1- desc " Generate flat files with Middleman"
1+ desc ' Generate flat files with Middleman'
22task :generate do
3- puts " ## Generating site with Middleman"
4- system " rm -rf build"
5- system "./bin/ middleman build --clean"
6- system " cp CNAME build/CNAME"
7- cd " build" do
8- system " touch .nojekyll"
9- system " git init"
10- system " git remote add origin git@github.com:mvcss/mvcss.github.com.git"
3+ puts ' ## Generating site with Middleman'
4+ system ' rm -rf build'
5+ system 'bundle exec middleman build --clean'
6+ system ' cp CNAME build/CNAME'
7+ cd ' build' do
8+ system ' touch .nojekyll'
9+ system ' git init'
10+ system ' git remote add origin git@github.com:mvcss/mvcss.github.com.git'
1111 end
1212end
1313
14- desc " Push the build to GitHub"
14+ desc ' Push the build to GitHub'
1515task :push do
16- puts " ## Deploying build to GitHub Pages"
17- cd " build" do
18- system " git add ."
19- system " git add -u"
20- system "git commit -m \" Site updated at #{ Time . now . utc } \" "
21- system " git push origin master --force"
16+ puts ' ## Deploying build to GitHub Pages'
17+ cd ' build' do
18+ system ' git add .'
19+ system ' git add -u'
20+ system "git commit -m \' Site updated at #{ Time . now . utc } \' "
21+ system ' git push origin master --force'
2222 end
2323end
2424
25- desc " Generate flat files and deploy to GitHub Pages"
25+ desc ' Generate flat files and deploy to GitHub Pages'
2626task :deploy => [ :generate , :push ] do
2727end
You can’t perform that action at this time.
0 commit comments