1
0
Fork 0

Update for deployment

This commit is contained in:
Andrew Tomaka 2015-05-13 11:30:26 -04:00
parent 7d897f382c
commit b7f9d6b298
2 changed files with 25 additions and 4 deletions

View File

@ -13,6 +13,7 @@ module.exports = (grunt) ->
'slides/{,*/}*.{md,html}'
'js/*.js'
'css/*.css'
'img/*'
]
index:
@ -80,6 +81,7 @@ module.exports = (grunt) ->
'bower_components/**'
'js/**'
'css/*.css'
'img/*'
]
dest: 'dist/'
},{
@ -90,6 +92,18 @@ module.exports = (grunt) ->
}]
buildcontrol:
options:
dir: 'dist'
commit: true
push: true
message: 'Built from %sourceCommit% on branch %sourceBranch%'
pages:
options:
remote: 'git@github.com:atomaka/intro-to-vagrant.git'
branch: 'gh-pages'
# Load all grunt tasks.
@ -134,6 +148,12 @@ module.exports = (grunt) ->
]
grunt.registerTask 'deploy',
'Deploy to Github Pages', [
'dist'
'buildcontrol'
]
# Define default task.
grunt.registerTask 'default', [

View File

@ -10,6 +10,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": {