Merge pull request #12210 from atom/ns-dg-rename-publish-var

Rename ATOM_REPO to ATOM_PUBLISH_REPO and always publish when it is set
This commit is contained in:
Nathan Sobo
2016-07-21 15:53:42 -06:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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)

View File

@@ -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'