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"
@@ -567,6 +580,17 @@ jobs:
567580 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
568581 TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
569582 if : success() && !env.SKIP_JOB
583+ - name : create github artifacts
584+ run : src/ci/scripts/create-doc-artifacts.sh
585+ if : success() && !env.SKIP_JOB
586+ - name : upload artifacts to github
587+ uses : actions/upload-artifact@v3
588+ with :
589+ name : " ${{ env.DOC_ARTIFACT_NAME }}"
590+ path : obj/artifacts/doc
591+ if-no-files-found : ignore
592+ retention-days : 5
593+ if : success() && !env.SKIP_JOB
570594 - name : upload artifacts to S3
571595 run : src/ci/scripts/upload-artifacts.sh
572596 env :
@@ -581,6 +605,7 @@ jobs:
581605 DIST_TRY_BUILD : 1
582606 CI_JOB_NAME : " ${{ matrix.name }}"
583607 CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse
608+ HEAD_SHA : " ${{ github.event.pull_request.head.sha || github.sha }}"
584609 SCCACHE_BUCKET : rust-lang-ci-sccache2
585610 DEPLOY_BUCKET : rust-lang-ci2
586611 TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate"
@@ -682,6 +707,17 @@ jobs:
682707 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
683708 TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
684709 if : success() && !env.SKIP_JOB
710+ - name : create github artifacts
711+ run : src/ci/scripts/create-doc-artifacts.sh
712+ if : success() && !env.SKIP_JOB
713+ - name : upload artifacts to github
714+ uses : actions/upload-artifact@v3
715+ with :
716+ name : " ${{ env.DOC_ARTIFACT_NAME }}"
717+ path : obj/artifacts/doc
718+ if-no-files-found : ignore
719+ retention-days : 5
720+ if : success() && !env.SKIP_JOB
685721 - name : upload artifacts to S3
686722 run : src/ci/scripts/upload-artifacts.sh
687723 env :
0 commit comments