8383 git clone --quiet ${repository}
8484 cd rust-code-analysis
8585 git -c advice.detachedHead=false checkout ${head_rev}
86- cargo install mdbook --no-default-features --features output --vers "^0.1.0"
86+ cargo install mdbook
8787 cargo doc --release
8888 cd rust-code-analysis-book
8989 mdbook build
@@ -445,12 +445,45 @@ tasks:
445445 owner : cdenizet@mozilla.com
446446 source : ${repository}/raw/${head_rev}/.taskcluster.yml
447447
448+ - $if : ' tasks_for == "github-push" && head_branch == "refs/heads/master"'
449+ then :
450+ taskId : {$eval: as_slugid("deploy_documentation")}
451+ dependencies :
452+ - {$eval: as_slugid("build_documentation")}
453+ created : {$fromNow: ''}
454+ deadline : {$fromNow: '2 hour'}
455+ provisionerId : proj-relman
456+ workerType : ci
457+ payload :
458+ features :
459+ taskclusterProxy : true
460+ maxRunTime : 3600
461+ image : " ${taskboot_image}"
462+ command :
463+ - " /bin/sh"
464+ - " -cxe"
465+ - |-
466+ git config --global user.email moz-tools-bot@moz.tools
467+ git config --global user.name moz.tools Bot
468+ git clone --quiet ${repository}
469+ cd rust-code-analysis
470+ taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz
471+ tar xfz book.tar.gz -C rust-code-analysis-book
472+ ./rust-code-analysis-book/deploy-to-GitHub-Pages
473+ taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages
474+ rm -rf book.tar.gz
475+ metadata :
476+ name : " rust-code-analysis-book deploy on GitHub pages"
477+ description : rust-code-analysis-book deploy on GitHub pages
478+ owner : cdenizet@mozilla.com
479+ source : ${repository}/raw/${head_rev}/.taskcluster.yml
480+
448481 - $if : ' tasks_for == "github-push" && head_branch[:10] == "refs/tags/"'
449482 then :
450483 taskId : {$eval: as_slugid("publish_crates")}
451484 dependencies :
452485 - {$eval: as_slugid("test_mozilla_central")}
453- - {$eval: as_slugid("build_documentation ")}
486+ - {$eval: as_slugid("deploy_documentation ")}
454487 created : {$fromNow: ''}
455488 deadline : {$fromNow: '2 hour'}
456489 provisionerId : proj-relman
@@ -592,7 +625,7 @@ tasks:
592625 - {$eval: as_slugid("build_linux_release")}
593626 - {$eval: as_slugid("build_windows_release")}
594627 - {$eval: as_slugid("test_mozilla_central")}
595- - {$eval: as_slugid("build_documentation ")}
628+ - {$eval: as_slugid("deploy_documentation ")}
596629 created : {$fromNow: ''}
597630 deadline : {$fromNow: '2 hour'}
598631 provisionerId : proj-relman
@@ -610,16 +643,7 @@ tasks:
610643 - " /bin/sh"
611644 - " -cxe"
612645 - |-
613- git config --global user.email moz-tools-bot@moz.tools
614- git config --global user.name moz.tools Bot
615- git clone --quiet ${repository}
616- cd rust-code-analysis
617- taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz
618- tar xfz book.tar.gz -C rust-code-analysis-book
619- ./rust-code-analysis-book/deploy-to-GitHub-Pages
620- taskboot git-push --force-push github.com/mozilla/rust-code-analysis moz-tools-bot gh-pages
621646 taskboot github-release mozilla/rust-code-analysis ${head_branch[10:]} --asset Cargo.lock:public/Cargo.lock ${linux_cli}:public/${linux_cli} ${linux_web}:public/${linux_web} ${win_cli}:public/${win_cli} ${win_web}:public/${win_web}
622- rm -rf book.tar.gz
623647 metadata :
624648 name : " rust-code-analysis release publication ${head_branch[10:]}"
625649 description : rust-code-analysis release publication on Github
0 commit comments