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

gitlab-ci.yml: trigger docs pipeline after building-docs


When documentation changes, trigger the docs pipeline to update the
aggregated documentation view.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent c8de67a3
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ stages: ...@@ -18,6 +18,7 @@ stages:
- compliance - compliance
- build - build
- test - test
- deploy
include: include:
- project: 'OSTC/infrastructure/pipelines' - project: 'OSTC/infrastructure/pipelines'
...@@ -58,6 +59,29 @@ build-docs: ...@@ -58,6 +59,29 @@ build-docs:
- docs/**/* - docs/**/*
# Run this job in case the pipeline changes. # Run this job in case the pipeline changes.
- .ostc-ci/*.yml - .ostc-ci/*.yml
# Or when things land.
- if: '$CI_BRANCH_NAME == "$CI_DEFAULT_BRANCH"'
changes:
# React to changes to the docs directory.
- docs/**/*
# Run this job in case the pipeline changes.
- .ostc-ci/*.yml
# When the build-docs pipeline is triggered by documentation change and it
# succeeds, then trigger the pipeline in the OSTC/OHOS/docs repository, to
# update the published documentation.
update-docs:
needs: [build-docs] # depend on build-docs to avoid publishing broken things.
stage: deploy
trigger: OSTC/OHOS/docs
rules:
# Update the documentation when things land in the default branch.
- if: '$CI_BRANCH_NAME == "$CI_DEFAULT_BRANCH"'
changes:
# React to changes to the docs directory.
- docs/**/*
# Run this job in case the pipeline changes.
- .ostc-ci/*.yml
# Customize the generic .build job, included from build-generic.yaml above, # Customize the generic .build job, included from build-generic.yaml above,
# with settings for testing updates to the meta-ohos git repository. # with settings for testing updates to the meta-ohos git repository.
......
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