Skip to content
Snippets Groups Projects
Commit aa4b98c0 authored by ave's avatar ave Committed by ave
Browse files

.gitlab-ci.yml: Switch to rules/if

parent 9b19c434
No related branches found
No related tags found
1 merge request!646.gitlab-ci.yml: Switch to rules for determining when to run a pipeline and limit dist run to tags
Pipeline #12643 passed
...@@ -59,8 +59,8 @@ simulate: ...@@ -59,8 +59,8 @@ simulate:
pages: pages:
stage: deploy stage: deploy
only: rules:
- main - if: $CI_COMMIT_BRANCH == "main"
script: script:
- cd docs - cd docs
- make html - make html
...@@ -74,10 +74,8 @@ dist: ...@@ -74,10 +74,8 @@ dist:
variables: variables:
# Force a full clone to make version machinery work. # Force a full clone to make version machinery work.
GIT_STRATEGY: clone GIT_STRATEGY: clone
only: rules:
- /^v\/[0-9]+\.[0-9]+\.[0-9]+.*$/ - if: $CI_COMMIT_TAG
- /^release\/[0-9]+\.[0-9]+\.[0-9]+$/
- tags
script: script:
- bash tools/dist.sh - bash tools/dist.sh
artifacts: artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment