Copy API docs to the build dir

This commit is contained in:
probablycorey
2014-06-26 16:14:37 -07:00
parent 2107b10778
commit 81afb89d27

View File

@@ -18,7 +18,10 @@ defaultHeaders =
module.exports = (gruntObject) ->
grunt = gruntObject
grunt.registerTask 'publish-build', 'Publish the built app', ['build-docs', 'upload-assets']
grunt.registerTask 'publish-build', 'Publish the built app', ['prepare-docs', 'upload-assets']
grunt.registerTask 'prepare-docs', ['build-docs'], ->
fs.copySync(grunt.config.get('docsOutputDir'), path.join(grunt.config.get('atom.buildDir'), 'atom-docs'))
grunt.registerTask 'upload-assets', ->
return if process.env.JANKY_SHA1 and process.env.JANKY_BRANCH isnt 'master'
@@ -41,7 +44,7 @@ getAssets = ->
[
{assetName: 'atom-mac.zip', sourcePath: 'Atom.app'}
{assetName: 'atom-mac-symbols.zip', sourcePath: 'Atom.breakpad.syms'}
{assetName: 'atom-docs.zip', sourcePath: grunt.config.get('docsOutputDir')}
{assetName: 'atom-docs.zip', sourcePath: 'atom-docs'}
]
else
[