mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Copy API docs to the build dir
This commit is contained in:
@@ -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
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user