Skip to content
Snippets Groups Projects
Commit f7a1948b authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

gitlab-ci.yml: avoid (cd foo && ...) when possible


Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent e85e015b
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ deploy: ...@@ -69,7 +69,7 @@ deploy:
- !reference [.workspace, script] - !reference [.workspace, script]
# We are in the root of the git-repo workspace. # We are in the root of the git-repo workspace.
- git clone https://user:$OHOS_AGGREGATED_DOCS_TOKEN@git.ostc-eu.org/OSTC/infrastructure/openharmony-readthedocs-aggregated.git aggregated - git clone https://user:$OHOS_AGGREGATED_DOCS_TOKEN@git.ostc-eu.org/OSTC/infrastructure/openharmony-readthedocs-aggregated.git aggregated
- (cd aggregated && find . -maxdepth 1 -not -path ./.git -not -path . -exec rm -rf {} \;) - find aggregated -maxdepth 1 -not -path aggregated/.git -not -path aggregated -exec rm -rvf {} \;
- tar -c --dereference -C docs --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated - tar -c --dereference -C docs --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated
# Commit and push back, if something changed. # Commit and push back, if something changed.
- | - |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment