Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c458651

Browse files
committed
chore(code.angularjs.org): don't gzip the zip file before uploading
1 parent 7a1270c commit c458651

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Gruntfile.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,17 @@ module.exports = function(grunt) {
324324
}
325325
]
326326
},
327+
deployFirebaseCode: {
328+
files: [
329+
// the zip file should not be compressed again.
330+
{
331+
src: 'build/*.zip',
332+
dest: 'uploadCode/' + deployVersion + '/',
333+
expand: true,
334+
flatten: true
335+
}
336+
]
337+
},
327338
deployFirebaseDocs: {
328339
files: [
329340
// The source files are needed by the embedded examples in the docs app.
@@ -357,7 +368,7 @@ module.exports = function(grunt) {
357368
options: {
358369
mode: 'gzip'
359370
},
360-
src: ['**'],
371+
src: ['**', '!*.zip'],
361372
cwd: 'build',
362373
expand: true,
363374
dest: 'uploadCode/' + deployVersion + '/'
@@ -463,6 +474,7 @@ module.exports = function(grunt) {
463474
grunt.registerTask('prepareFirebaseDeploy', [
464475
'package',
465476
'compress:deployFirebaseCode',
477+
'copy:deployFirebaseCode',
466478
'copy:deployFirebaseDocs'
467479
]);
468480
grunt.registerTask('default', ['package']);

0 commit comments

Comments
 (0)