Skip to content

Commit

Permalink
feat(grunt): auto release task
Browse files Browse the repository at this point in the history
  • Loading branch information
sparanoid committed Jun 3, 2016
1 parent 87d766d commit 6c33090
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ module.exports = (grunt) ->
amsf__theme__to_dev_repo:
command: "rsync -avz --delete --progress --exclude=.git --exclude=node_modules <%= amsf.base %>/themes/<%= amsf.theme.current %>/ /Users/sparanoid/Git/amsf-<%= amsf.theme.current %> > rsync-theme-dev.log"

amsf__release:
command: "git checkout release && git pull && git merge master --no-edit && git push && git checkout master && git push"

concurrent:
options:
logConcurrentOutput: true
Expand Down Expand Up @@ -630,6 +633,10 @@ module.exports = (grunt) ->
"replace:amsf__site__update_version"
"bump-commit"
]
if grunt.option("publish")
grunt.task.run [
"shell:amsf__release"
]

grunt.registerTask "deploy-rsync", "Deploy to remote server via rsync", [
"shell:amsf__deploy__rsync"
Expand Down

0 comments on commit 6c33090

Please sign in to comment.