File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -519,20 +519,13 @@ module.exports = function (grunt) {
519519 } ) ;
520520
521521 grunt . registerTask ( 'deploy' , function ( env ) {
522- // will set aws.env to production if
523- // this is a git tag.
524- grunt . task . run ( 'shell:isGitTag' ) ;
525-
526522 var repo = process . env . TRAVIS_REPO_SLUG ;
527523 var branch = process . env . TRAVIS_BRANCH ;
528-
529524 if ( repo && repo !== 'cloudspace/angular.crunchinator.com' ) {
530525 return ;
531526 }
532- if ( aws . env !== 'production' ) {
533- if ( branch && branch !== 'master' ) {
534- return ;
535- }
527+ if ( branch && branch !== 'master' ) {
528+ return ;
536529 }
537530
538531 if ( ! aws . key ) {
@@ -542,7 +535,9 @@ module.exports = function (grunt) {
542535 throw new Error ( 'You must specify a `AWS_SECRET_ACCESS_KEY` ENV variable.' ) ;
543536 }
544537
545-
538+ // will set aws.env to production if
539+ // this is a git tag.
540+ grunt . task . run ( 'shell:isGitTag' ) ;
546541 env = env || aws . env || 'staging' ;
547542
548543 if ( env === 'production' ) {
You can’t perform that action at this time.
0 commit comments