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

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

parent 385e7500
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 #12763 passed
......@@ -59,8 +59,8 @@ simulate:
pages:
stage: deploy
only:
- main
rules:
- if: $CI_COMMIT_BRANCH == "main"
script:
- cd docs
- make html
......@@ -74,10 +74,8 @@ dist:
variables:
# Force a full clone to make version machinery work.
GIT_STRATEGY: clone
only:
- /^v\/[0-9]+\.[0-9]+\.[0-9]+.*$/
- /^release\/[0-9]+\.[0-9]+\.[0-9]+$/
- tags
rules:
- if: $CI_COMMIT_TAG
script:
- bash tools/dist.sh
artifacts:
......
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