From 91b4662ecc4dd69518a403f6dd8db7f2f4e9d3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20Jim=C3=A9nez?= Date: Thu, 21 Jun 2018 16:18:51 +0200 Subject: [PATCH] remove frozen asset upload logic from Gruntfile --- Gruntfile.js | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ab2e567b72..20859126b5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -386,7 +386,11 @@ module.exports = function (grunt) { 'npm-build-static' ]); - var releaseTasks = [ + /** + * `grunt release` + * `grunt release --environment=production` + */ + grunt.registerTask('release', [ 'check_release', 'build-static', 'npm-build', @@ -400,19 +404,7 @@ module.exports = function (grunt) { 's3:unversioned', 's3:static_pages', 'invalidate' - ]; - - // If the editor assets changed since the last tag we have to build & upload them - if (EDITOR_ASSETS_CHANGED) { - releaseTasks.splice(releaseTasks.indexOf('build-static'), 0, 'build-editor'); - releaseTasks.splice(releaseTasks.indexOf('s3:js'), 0, 's3:frozen'); - } - - /** - * `grunt release` - * `grunt release --environment=production` - */ - grunt.registerTask('release', releaseTasks); + ]); grunt.registerTask('release_editor_assets', 'builds & uploads editor assets', [ 'build-editor',