File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -519,13 +519,20 @@ 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+
522526 var repo = process . env . TRAVIS_REPO_SLUG ;
523527 var branch = process . env . TRAVIS_BRANCH ;
528+
524529 if ( repo && repo !== 'cloudspace/angular.crunchinator.com' ) {
525530 return ;
526531 }
527- if ( branch && branch !== 'master' ) {
528- return ;
532+ if ( aws . env !== 'production' ) {
533+ if ( branch && branch !== 'master' ) {
534+ return ;
535+ }
529536 }
530537
531538 if ( ! aws . key ) {
@@ -535,9 +542,7 @@ module.exports = function (grunt) {
535542 throw new Error ( 'You must specify a `AWS_SECRET_ACCESS_KEY` ENV variable.' ) ;
536543 }
537544
538- // will set aws.env to production if
539- // this is a git tag.
540- grunt . task . run ( 'shell:isGitTag' ) ;
545+
541546 env = env || aws . env || 'staging' ;
542547
543548 if ( env === 'production' ) {
You can’t perform that action at this time.
0 commit comments