diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index 0f0f0489f7..25ccb0912a 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -313,6 +313,48 @@ publish-s3-doc: - aws s3 ls s3://${BUCKET}/${PREFIX}/ --human-readable --summarize + +publish-gh-doc: + stage: publish + image: parity/tools:latest + allow_failure: true + dependencies: + - build-rust-doc-release + cache: {} + <<: *build-only + <<: *kubernetes-build + variables: + GIT_STRATEGY: none + GITHUB_API: "https://api.github.com" + script: + - test -r ./crate-docs/index.html || ( + echo "./crate-docs/index.html not present, build:rust:doc:release job not complete"; + exit 1 + ) + - test "${GITHUB_USER}" -a "${GITHUB_EMAIL}" -a "${GITHUB_TOKEN}" || ( + echo "environment variables for github insufficient"; + exit 1 + ) + - | + cat > ${HOME}/.gitconfig <&1 | sed -r "s|(${GITHUB_USER}):[a-f0-9]+@|\1:REDACTED@|g" + after_script: + - rm -vrf ${HOME}/.gitconfig + + + .deploy-template: &deploy stage: kubernetes when: manual