[ci] Return publish-rustdoc (#1402)

* [WIP][ci] Return publish-rustdoc

* rm files

* fix ref

* add build doc

* add comment

* move test-deterministic-wasm to test stage

* rm test-deterministic-wasm from root

* test publish

* enable pipeline

* add test_deterministic_wasm.sh for resolving conflicts

* rm unused bash script
This commit is contained in:
Alexander Samusev
2023-09-07 12:39:53 +02:00
committed by GitHub
parent 15503883e2
commit 09503b1d2d
7 changed files with 71 additions and 34 deletions
+6 -8
View File
@@ -105,20 +105,18 @@ build-rustdoc:
- .run-immediately
variables:
SKIP_WASM_BUILD: 1
# artifacts:
# name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
# when: on_success
# expire_in: 1 days
# paths:
# - ./crate-docs/
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
when: on_success
expire_in: 1 days
paths:
- ./crate-docs/
script:
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"` and `--all-features`
# FIXME: return to stable when https://github.com/rust-lang/rust/issues/96937 gets into stable
- time cargo doc --features try-runtime,experimental --workspace --no-deps
- rm -f ./target/doc/.lock
- mv ./target/doc ./crate-docs
# FIXME: remove me after CI image gets nonroot
- chown -R nonroot:nonroot ./crate-docs
# Inject Simple Analytics (https://www.simpleanalytics.com/) privacy preserving tracker into
# all .html files
- |