File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ build:rust:linux:release: &build
140
140
141
141
build:rust:doc:release : &build
142
142
stage : build
143
+ allow_failure : true
143
144
artifacts :
144
145
name : " ${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
145
146
when : on_success
@@ -150,6 +151,7 @@ build:rust:doc:release: &build
150
151
tags :
151
152
- linux-docker
152
153
script :
154
+ - rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
153
155
- time cargo doc --release --verbose
154
156
- cp -R ./target/doc ./crate-docs
155
157
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
@@ -231,6 +233,10 @@ publish:s3:doc:
231
233
BUCKET : " releases.parity.io"
232
234
PREFIX : " substrate-rustdoc"
233
235
script :
236
+ - test -r ./crate-docs/index.html || (
237
+ echo "./crate-docs/index.html not present, build:rust:doc:release job not complete";
238
+ exit 1
239
+ )
234
240
- aws s3 sync --delete --size-only --only-show-errors
235
241
./crate-docs/ s3://${BUCKET}/${PREFIX}/
236
242
after_script :
You can’t perform that action at this time.
0 commit comments