Skip to content

Commit b359b49

Browse files
authored
[ci] fix publish-rustdocs (paritytech#10858)
1 parent fd2c397 commit b359b49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ publish-rustdoc:
756756
# Save README and docs
757757
- cp -r ./crate-docs/ /tmp/doc/
758758
- cp README.md /tmp/doc/
759-
- git checkout gh-pages
759+
# we don't need to commit changes because we copy docs to /tmp
760+
- git checkout gh-pages --force
760761
# Install `index-tpl-crud` and generate index.html based on RUSTDOCS_DEPLOY_REFS
761762
- which index-tpl-crud &> /dev/null || yarn global add @substrate/index-tpl-crud
762763
- index-tpl-crud upsert ./index.html ${CI_COMMIT_REF_NAME}

0 commit comments

Comments
 (0)