@@ -342,42 +342,48 @@ tasks:
342
342
343
343
- $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
344
344
then :
345
- taskId : {$eval: as_slugid("deploy_release")}
346
- dependencies :
347
- - {$eval: as_slugid("build_linux_release")}
348
- - {$eval: as_slugid("strip_windows_binary")}
349
- - {$eval: as_slugid("test_mozilla_central")}
350
- - {$eval: as_slugid("build_documentation")}
351
- created : {$fromNow: ''}
352
- deadline : {$fromNow: '2 hour'}
353
- provisionerId : proj-relman
354
- workerType : ci
355
- scopes :
356
- - secrets:get:project/relman/rust-code-analysis/deploy
357
- payload :
358
- features :
359
- taskclusterProxy : true
360
- maxRunTime : 3600
361
- image : " mozilla/taskboot:0.3.2"
362
- env :
363
- TASKCLUSTER_SECRET : project/relman/rust-code-analysis/deploy
364
- command :
365
- - " /bin/sh"
366
- - " -cx"
367
- -
" git config --global user.email [email protected] &&
368
- git config --global user.name moz.tools Bot &&
369
- git clone --recursive --quiet ${repository} &&
370
- cd rust-code-analysis &&
371
- taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz &&
372
- tar xfz book.tar.gz -C rust-code-analysis-book &&
373
- ./rust-code-analysis-book/deploy-to-GitHub-Pages &&
374
- taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages &&
375
- taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset rust-code-analysis-linux-cli-x86_64.tar.gz:public/rust-code-analysis-linux-cli-x86_64.tar.gz rust-code-analysis-linux-web-x86_64.tar.gz:public/rust-code-analysis-linux-web-x86_64.tar.gz rust-code-analysis-win-cli-x86_64.zip:public/rust-code-analysis-win-cli-x86_64.zip rust-code-analysis-win-web-x86_64.zip:public/rust-code-analysis-win-web-x86_64.zip &&
376
- taskboot cargo-publish &&
377
- cd rust-code-analysis-cli && taskboot cargo-publish && cd .. &&
378
- cd rust-code-analysis-web && taskboot cargo-publish"
379
- metadata :
380
- name : " rust-code-analysis release publication ${head_branch[10:]}"
381
- description : rust-code-analysis release publication on Github
382
-
383
- source : ${repository}/raw/${head_rev}/.taskcluster.yml
345
+ $let :
346
+ linux_cli : rust-code-analysis-linux-cli-x86_64.tar.gz
347
+ linux_web : rust-code-analysis-linux-web-x86_64.tar.gz
348
+ win_cli : rust-code-analysis-win-cli-x86_64.zip
349
+ win_web : rust-code-analysis-win-web-x86_64.zip
350
+ in :
351
+ taskId : {$eval: as_slugid("deploy_release")}
352
+ dependencies :
353
+ - {$eval: as_slugid("build_linux_release")}
354
+ - {$eval: as_slugid("strip_windows_binary")}
355
+ - {$eval: as_slugid("test_mozilla_central")}
356
+ - {$eval: as_slugid("build_documentation")}
357
+ created : {$fromNow: ''}
358
+ deadline : {$fromNow: '2 hour'}
359
+ provisionerId : proj-relman
360
+ workerType : ci
361
+ scopes :
362
+ - secrets:get:project/relman/rust-code-analysis/deploy
363
+ payload :
364
+ features :
365
+ taskclusterProxy : true
366
+ maxRunTime : 3600
367
+ image : " mozilla/taskboot:0.3.2"
368
+ env :
369
+ TASKCLUSTER_SECRET : project/relman/rust-code-analysis/deploy
370
+ command :
371
+ - " /bin/sh"
372
+ - " -cx"
373
+ -
" git config --global user.email [email protected] &&
374
+ git config --global user.name moz.tools Bot &&
375
+ git clone --recursive --quiet ${repository} &&
376
+ cd rust-code-analysis &&
377
+ taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz &&
378
+ tar xfz book.tar.gz -C rust-code-analysis-book &&
379
+ ./rust-code-analysis-book/deploy-to-GitHub-Pages &&
380
+ taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages &&
381
+ taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset ${linux_cli}:public/${linux_cli} ${linux_web}:public/${linux_web} ${win_cli}:public/${win_cli} ${win_web}:public/${win_web} &&
382
+ taskboot cargo-publish &&
383
+ cd rust-code-analysis-cli && taskboot cargo-publish && cd .. &&
384
+ cd rust-code-analysis-web && taskboot cargo-publish"
385
+ metadata :
386
+ name : " rust-code-analysis release publication ${head_branch[10:]}"
387
+ description : rust-code-analysis release publication on Github
388
+
389
+ source : ${repository}/raw/${head_rev}/.taskcluster.yml
0 commit comments