Skip to content

Commit 0f321eb

Browse files
author
Nicholas Thomson
committed
Revert "Deploy on tags no matter the branch name"
This reverts commit 01a114b.
1 parent e066420 commit 0f321eb

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

Gruntfile.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)