Skip to content

Commit

Permalink
Adding ability to publish to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianGenisio committed Jul 9, 2015
1 parent 5827a82 commit 399acfe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated on 2015-06-08 using generator-reveal 0.4.0
# Generated on 2015-01-01 using generator-reveal 0.4.0
module.exports = (grunt) ->

grunt.initConfig
Expand Down Expand Up @@ -68,6 +68,7 @@ module.exports = (grunt) ->
'slides/**'
'bower_components/**'
'js/**'
'assets/**'
]
dest: 'dist/'
},{
Expand All @@ -78,6 +79,18 @@ module.exports = (grunt) ->
}]


buildcontrol:

options:
dir: 'dist'
commit: true
push: true
message: 'Built from %sourceCommit% on branch %sourceBranch%'
pages:
options:
remote: '[email protected]:BrianGenisio/semjs-slides.git'
branch: 'gh-pages'



# Load all grunt tasks.
Expand Down Expand Up @@ -120,9 +133,15 @@ module.exports = (grunt) ->
]


grunt.registerTask 'deploy',
'Deploy to Github Pages', [
'dist'
'buildcontrol'
]


# Define default task.
grunt.registerTask 'default', [
'test'
'serve'
]
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jshint": "^0.10.0",
"load-grunt-tasks": "^1.0.0",
"grunt-build-control": "^0.2.2",
"grunt-coffeelint": "0.0.13"
},
"engines": {
Expand Down

0 comments on commit 399acfe

Please sign in to comment.