38
38
env:
39
39
CI_JOB_NAME: "${{ matrix.name }}"
40
40
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
41
+ HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
41
42
SCCACHE_BUCKET: rust-lang-ci-sccache2
42
43
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
43
44
CACHE_DOMAIN: ci-caches.rust-lang.org
@@ -143,6 +144,17 @@ jobs:
143
144
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
144
145
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
145
146
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
146
158
- name: upload artifacts to S3
147
159
run: src/ci/scripts/upload-artifacts.sh
148
160
env:
@@ -156,6 +168,7 @@ jobs:
156
168
env:
157
169
CI_JOB_NAME: "${{ matrix.name }}"
158
170
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
171
+ HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
159
172
SCCACHE_BUCKET: rust-lang-ci-sccache2
160
173
DEPLOY_BUCKET: rust-lang-ci2
161
174
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -567,6 +580,17 @@ jobs:
567
580
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
568
581
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
569
582
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
570
594
- name: upload artifacts to S3
571
595
run: src/ci/scripts/upload-artifacts.sh
572
596
env:
@@ -581,6 +605,7 @@ jobs:
581
605
DIST_TRY_BUILD: 1
582
606
CI_JOB_NAME: "${{ matrix.name }}"
583
607
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
608
+ HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
584
609
SCCACHE_BUCKET: rust-lang-ci-sccache2
585
610
DEPLOY_BUCKET: rust-lang-ci2
586
611
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -682,6 +707,17 @@ jobs:
682
707
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
683
708
TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
684
709
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
685
721
- name: upload artifacts to S3
686
722
run: src/ci/scripts/upload-artifacts.sh
687
723
env:
0 commit comments