diff --git a/build/Gruntfile.coffee b/build/Gruntfile.coffee index b248eda2e..653e1e268 100644 --- a/build/Gruntfile.coffee +++ b/build/Gruntfile.coffee @@ -296,7 +296,9 @@ module.exports = (grunt) -> ciTasks.push('create-windows-installer:installer') ciTasks.push('codesign:installer') if process.env.JANKY_SIGNTOOL ciTasks.push('codesign:cleanup') - ciTasks.push('publish-build') unless process.env.CI + + if process.env.ATOM_PUBLISH_REPO or not process.env.CI + ciTasks.push('publish-build') grunt.registerTask('ci', ciTasks) diff --git a/build/tasks/publish-build-task.coffee b/build/tasks/publish-build-task.coffee index 2802f827d..27f36aaeb 100644 --- a/build/tasks/publish-build-task.coffee +++ b/build/tasks/publish-build-task.coffee @@ -11,7 +11,7 @@ AWS = require 'aws-sdk' grunt = null token = process.env.ATOM_ACCESS_TOKEN -repo = process.env.ATOM_REPO ? 'atom/atom' +repo = process.env.ATOM_PUBLISH_REPO ? 'atom/atom' defaultHeaders = Authorization: "token #{token}" 'User-Agent': 'Atom'