From 726cc4c077dd1a5915ebe8eef945b1482c68ee02 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 21 Jul 2016 13:42:26 -0600 Subject: [PATCH] Rename ATOM_REPO to ATOM_PUBLISH_REPO and always publish when it is set --- build/Gruntfile.coffee | 4 +++- build/tasks/publish-build-task.coffee | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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'