ci: enable build for pre-tags (#4836)

* build for pre-tags

* shallow clone rustdocs
This commit is contained in:
gabriel klawitter
2020-02-06 16:47:44 +01:00
committed by GitHub
parent 07daa525b9
commit c7a7197f97
+2 -1
View File
@@ -65,6 +65,7 @@ variables:
only: only:
- master - master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 - /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- /^pre-v[0-9]+\.[0-9]+-[0-9a-f]+$/
- web - web
@@ -515,7 +516,7 @@ publish-gh-doc:
insteadOf = "https://github.com/" insteadOf = "https://github.com/"
EOC EOC
- unset GITHUB_TOKEN - unset GITHUB_TOKEN
- git clone https://github.com/substrate-developer-hub/rustdocs.git - git clone --depth 1 https://github.com/substrate-developer-hub/rustdocs.git
- rsync -ax --delete ./crate-docs/ ./rustdocs/${CI_COMMIT_REF_NAME}/ - rsync -ax --delete ./crate-docs/ ./rustdocs/${CI_COMMIT_REF_NAME}/
- cd ./rustdocs; git add . - cd ./rustdocs; git add .
- git commit -m "update rustdoc ${CI_COMMIT_REF_NAME}" - git commit -m "update rustdoc ${CI_COMMIT_REF_NAME}"