Skip to content

Commit

Permalink
Merge pull request #144 from LaurentGoderre/cdn-package
Browse files Browse the repository at this point in the history
Create a distributable package that only contains the theme files
  • Loading branch information
LaurentGoderre committed Jun 26, 2015
2 parents 32acc9b + 3d303a0 commit e33112f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ module.exports = (grunt) ->
grunt.task.run [
"copy:deploy"
"gh-pages:travis"
"gh-pages:travis_cdn"
"wb-update-examples"
]
)
Expand Down Expand Up @@ -486,6 +487,26 @@ module.exports = (grunt) ->
"**/*.*"
]

travis_cdn:
options:
repo: process.env.CDN_REPO
branch: "<%= deployBranch %>"
clone: "themes-cdn"
base: "<%= themeDist %>"
message: ((
if process.env.TRAVIS_TAG
"CDN files for the " + process.env.TRAVIS_TAG + " maintenance release"
else
"Travis build " + process.env.TRAVIS_BUILD_NUMBER
))
silent: true,
tag: ((
if process.env.TRAVIS_TAG then process.env.TRAVIS_TAG + "-" + "<%= pkg.name.toLowerCase() %>" else false
))
src: [
"**/*.*"
]

"wb-update-examples":
travis:
options:
Expand Down

0 comments on commit e33112f

Please sign in to comment.