File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ notifications:
47
47
jobs :
48
48
include :
49
49
- stage : deploy
50
- script : grunt package
50
+ script : grunt package && grunt compress:uploadBuild
51
51
before_script : skip
52
52
after_script : echo "after script"
53
53
# keep the process alive until the deploy is completed
68
68
secret_access_key :
69
69
secure : tHIFdSq55qkyZf9zT/3+VkhUrTvOTMuswxXU3KyWaBrSieZqG0UnUDyNm+n3lSfX95zEl/+rJAWbfvhVSxZi13ndOtvRF+MdI1cvow2JynP0aDSiPffEvVrZOmihD6mt2SlMfhskr5FTduQ69kZG6DfLcve1PPDaIwnbOv3phb8=
70
70
bucket : ng-i-1121e.appspot.com
71
- local-dir : build
71
+ local-dir : upload
72
72
skip_cleanup : true
73
73
on :
74
74
repo : angular/angular.js
Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ module.exports = function(grunt) {
64
64
NG_VERSION . cdn = versionInfo . cdnVersion ;
65
65
var dist = 'angular-' + NG_VERSION . full ;
66
66
67
+ var codeVersion = NG_VERSION . isSnapshot ? 'snapshot' : NG_VERSION . full ;
68
+
67
69
if ( versionInfo . cdnVersion == null ) {
68
70
throw new Error ( 'Unable to read CDN version, are you offline or has the CDN not been properly pushed?\n' +
69
71
'Perhaps you want to set the NG1_BUILD_NO_REMOTE_VERSION_REQUESTS environment variable?' ) ;
@@ -324,6 +326,15 @@ module.exports = function(grunt) {
324
326
expand : true ,
325
327
dot : true ,
326
328
dest : dist + '/'
329
+ } ,
330
+ uploadBuild : {
331
+ options : {
332
+ mode : 'gzip'
333
+ } ,
334
+ src : [ '**' ] ,
335
+ cwd : 'build' ,
336
+ expand : true ,
337
+ dest : 'upload/' + codeVersion + '/'
327
338
}
328
339
} ,
329
340
You can’t perform that action at this time.
0 commit comments