Commit d2526a92 authored by Remi Cresson's avatar Remi Cresson
Browse files

CI: only/except protected branch

No related merge requests found
Pipeline #45461 passed with stages
in 1 minute and 49 seconds
Showing with 5 additions and 5 deletions
+5 -5
......@@ -57,15 +57,15 @@ pip_install:
pages_tests:
extends: .doc_base
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
except:
- main
script:
- mkdocs build --site-dir public_test
pages:
extends: .doc_base
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
only:
- main
script:
- mkdocs build --site-dir public
......@@ -83,7 +83,7 @@ pages:
pypi:
stage: Ship
only:
- master
- main
before_script:
- python3 -m pip install --upgrade build twine
script:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment