Skip to content

Commit

Permalink
Add 'check_version' to the CI to not merge incompatible versions to '…
Browse files Browse the repository at this point in the history
…main'
  • Loading branch information
Joni Herttuainen authored and mgeplf committed Jun 15, 2022
1 parent 3b7866e commit 67548f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "web" # run for manually started pipelines from -/pipelines/new
- if: $CI_MERGE_REQUEST_IID # run for all the types of merge request pipelines
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # run for the default branch (not for tags)

stages:
- create
- check
- upload


create_doc:
stage: create
image: python:3.8-buster
Expand All @@ -13,6 +19,15 @@ create_doc:
paths:
- build/html

check_version:
stage: check
image: python:3.8-buster
rules:
- if: $CI_MERGE_REQUEST_IID
script:
- pip install -i https://bbpteam.epfl.ch/repository/devpi/simple --upgrade docs-internal-upload
- docs-internal-upload --docs-path build/html/ --duplicate-version-error --dry-run

upload_doc:
stage: upload
image: python:3.8-buster
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circuit-documentation",
"version": "0.0.47",
"version": "0.0.48",
"description": "Circuit Documentation",
"repository": {
"url": "https://bbpgitlab.epfl.ch/common/doc/circuit-documentation"
Expand Down

0 comments on commit 67548f0

Please sign in to comment.