Skip to content
Snippets Groups Projects
Commit e4ece8fb authored by jacques.dainat_ird.fr's avatar jacques.dainat_ird.fr
Browse files

add ci to deploy

parent f7d447cb
No related branches found
No related tags found
No related merge requests found
Pipeline #2413 passed
image: ubuntu:latest
workflow:
rules:
- if: $CI_COMMIT_BRANCH
cache:
key: $CI_COMMIT_REF_SLUG
before_script:
- apt-get update
- apt-get upgrade -y
- apt-get install -y python3-pip
- pip install mkdocs-material
- pip install pymdown-extensions
- pip install mkdocs-minify-plugin
- pip install mkdocs-macros-plugin
test:
stage: test
script:
- mkdocs build --strict --verbose --site-dir test
artifacts:
paths:
- test
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
- mkdocs build --verbose
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
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