Add dist to gruntfile
This commit is contained in:
parent
c8cd258e6e
commit
6a5c2bd8ba
1 changed files with 18 additions and 0 deletions
|
@ -92,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/vagrant-for-devops.git'
|
||||
branch: 'gh-pages'
|
||||
|
||||
|
||||
|
||||
# Load all grunt tasks.
|
||||
|
@ -136,6 +148,12 @@ module.exports = (grunt) ->
|
|||
]
|
||||
|
||||
|
||||
grunt.registerTask 'deploy',
|
||||
'Deploy to Github Pages', [
|
||||
'dist'
|
||||
'buildcontrol'
|
||||
]
|
||||
|
||||
|
||||
# Define default task.
|
||||
grunt.registerTask 'default', [
|
||||
|
|
Loading…
Reference in a new issue