Skip to content

Commit

Permalink
Refine publish task
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Feb 7, 2012
1 parent b3b8880 commit 5b3edfa
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Cakefile
Expand Up @@ -9,11 +9,18 @@ publish = (msg, cmd) ->
exec 'git status', (err, stdout) ->
if stdout.match /nothing to commit/
cmds = [
'rm -rf docs; docco src/**/*.coffee',
'rm -rf docs',
'docco src/**/*.coffee',
cmd,
'ls -1 | grep -v docs | xargs rm -rf; mv docs/* .; rm -rf docs',
"git add .; git commit -m '#{msg}'; git push origin gh-pages",
'git checkout master'
'ls -1 | grep -v docs | xargs rm -rf',
'mv docs/* .',
'rm -rf docs',
'git add .',
"git commit -m '#{msg}",
'git push origin gh-pages',
'git checkout master',
'rm -rf docs',
'npm install'
].join(' && ')
exec cmds
else
Expand Down

0 comments on commit 5b3edfa

Please sign in to comment.