Skip to content
Snippets Groups Projects
Commit c002c6d5 authored by Malte Bauch's avatar Malte Bauch
Browse files

Page deploy for multiple branches

See merge request !396
parent 93ef9e91
No related branches found
No related tags found
2 merge requests!396Page deploy for multiple branches,!382Develop
Pipeline #117760 passed
This commit is part of merge request !382. Comments created here will be created in the context of that merge request.
......@@ -15,7 +15,7 @@ stages:
- analyze
- integration-test
- build-release
- deploy
- publish
- .post
include:
......
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:latest
pages:
stage: deploy
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/python:3.9.15
cache:
# keep artifacts from previous builds
paths:
- public
documentation:
stage: publish
script:
- pip install mkdocs-material
- mkdocs build --site-dir public
- mkdocs build --site-dir public/$CI_COMMIT_BRANCH
needs: []
artifacts:
name: "$CI_COMMIT_BRANCH"
paths:
- public
expire_in: 1 week
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# run only for protected branches; in our case this should be master and
# develop.
- if: $CI_COMMIT_REF_PROTECTED == "true"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment