3838 env :
3939 CI_JOB_NAME : " ${{ matrix.name }}" 
4040 CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse 
41+  HEAD_SHA : " ${{ github.event.pull_request.head.sha || github.sha }}" 
4142 SCCACHE_BUCKET : rust-lang-ci-sccache2 
4243 TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate" 
4344 CACHE_DOMAIN : ci-caches.rust-lang.org 
@@ -143,6 +144,17 @@ jobs:
143144 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}" 
144145 TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}" 
145146 if : success() && !env.SKIP_JOB 
147+  - name : create github artifacts 
148+  run : src/ci/scripts/create-doc-artifacts.sh 
149+  if : success() && !env.SKIP_JOB 
150+  - name : upload artifacts to github 
151+  uses : actions/upload-artifact@v3 
152+  with :
153+  name : " ${{ env.DOC_ARTIFACT_NAME }}" 
154+  path : obj/artifacts/doc 
155+  if-no-files-found : ignore 
156+  retention-days : 5 
157+  if : success() && !env.SKIP_JOB 
146158 - name : upload artifacts to S3 
147159 run : src/ci/scripts/upload-artifacts.sh 
148160 env :
@@ -156,6 +168,7 @@ jobs:
156168 env :
157169 CI_JOB_NAME : " ${{ matrix.name }}" 
158170 CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse 
171+  HEAD_SHA : " ${{ github.event.pull_request.head.sha || github.sha }}" 
159172 SCCACHE_BUCKET : rust-lang-ci-sccache2 
160173 DEPLOY_BUCKET : rust-lang-ci2 
161174 TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate" 
@@ -557,6 +570,17 @@ jobs:
557570 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}" 
558571 TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}" 
559572 if : success() && !env.SKIP_JOB 
573+  - name : create github artifacts 
574+  run : src/ci/scripts/create-doc-artifacts.sh 
575+  if : success() && !env.SKIP_JOB 
576+  - name : upload artifacts to github 
577+  uses : actions/upload-artifact@v3 
578+  with :
579+  name : " ${{ env.DOC_ARTIFACT_NAME }}" 
580+  path : obj/artifacts/doc 
581+  if-no-files-found : ignore 
582+  retention-days : 5 
583+  if : success() && !env.SKIP_JOB 
560584 - name : upload artifacts to S3 
561585 run : src/ci/scripts/upload-artifacts.sh 
562586 env :
@@ -571,6 +595,7 @@ jobs:
571595 DIST_TRY_BUILD : 1 
572596 CI_JOB_NAME : " ${{ matrix.name }}" 
573597 CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse 
598+  HEAD_SHA : " ${{ github.event.pull_request.head.sha || github.sha }}" 
574599 SCCACHE_BUCKET : rust-lang-ci-sccache2 
575600 DEPLOY_BUCKET : rust-lang-ci2 
576601 TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate" 
@@ -672,6 +697,17 @@ jobs:
672697 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}" 
673698 TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}" 
674699 if : success() && !env.SKIP_JOB 
700+  - name : create github artifacts 
701+  run : src/ci/scripts/create-doc-artifacts.sh 
702+  if : success() && !env.SKIP_JOB 
703+  - name : upload artifacts to github 
704+  uses : actions/upload-artifact@v3 
705+  with :
706+  name : " ${{ env.DOC_ARTIFACT_NAME }}" 
707+  path : obj/artifacts/doc 
708+  if-no-files-found : ignore 
709+  retention-days : 5 
710+  if : success() && !env.SKIP_JOB 
675711 - name : upload artifacts to S3 
676712 run : src/ci/scripts/upload-artifacts.sh 
677713 env :
0 commit comments