mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 07:31:08 +00:00
allow build:rust:doc:release job to fail (#1812)
This commit is contained in:
committed by
Gav Wood
parent
34e3487035
commit
797de27d2b
@@ -140,6 +140,7 @@ build:rust:linux:release: &build
|
|||||||
|
|
||||||
build:rust:doc:release: &build
|
build:rust:doc:release: &build
|
||||||
stage: build
|
stage: build
|
||||||
|
allow_failure: true
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
|
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
|
||||||
when: on_success
|
when: on_success
|
||||||
@@ -150,6 +151,7 @@ build:rust:doc:release: &build
|
|||||||
tags:
|
tags:
|
||||||
- linux-docker
|
- linux-docker
|
||||||
script:
|
script:
|
||||||
|
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
|
||||||
- time cargo doc --release --verbose
|
- time cargo doc --release --verbose
|
||||||
- cp -R ./target/doc ./crate-docs
|
- cp -R ./target/doc ./crate-docs
|
||||||
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
|
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
|
||||||
@@ -231,6 +233,10 @@ publish:s3:doc:
|
|||||||
BUCKET: "releases.parity.io"
|
BUCKET: "releases.parity.io"
|
||||||
PREFIX: "substrate-rustdoc"
|
PREFIX: "substrate-rustdoc"
|
||||||
script:
|
script:
|
||||||
|
- test -r ./crate-docs/index.html || (
|
||||||
|
echo "./crate-docs/index.html not present, build:rust:doc:release job not complete";
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
- aws s3 sync --delete --size-only --only-show-errors
|
- aws s3 sync --delete --size-only --only-show-errors
|
||||||
./crate-docs/ s3://${BUCKET}/${PREFIX}/
|
./crate-docs/ s3://${BUCKET}/${PREFIX}/
|
||||||
after_script:
|
after_script:
|
||||||
|
|||||||
Reference in New Issue
Block a user