In my config file, I am defining a build matrix (2 dimensions: python version and an env variable) like so:
python: - "3.6" - "3.7" - "3.8" env: - DEP=[all] - DEP=[dev]
and a deploy stage that should only be run by one specific build. To achieve this, I am specifying the python variable and a condition for the env variable, like so:
deploy: provider: pages:git skip_cleanup: true verbose: true token: $GITHUB_TOKEN edge: true local_dir: ./docs/_build/html/ keep_history: true on: all_branches: true python: 3.8 condition: $DEP = [all]
However, the condition isn’t met for any of my jobs (Message: “Skipping a deployment with the pagesgit provider because a custom condition was not met”), not even for the one with Python 3.8 and $DEP = [all].
See this link for the job:
What am I doing wrong here? Are the env variables defined above not accessible in the deploy stage? Or is there some syntax error in the condition line?
Additional question: Some of the jobs print out two messages with regards to skipping the deployment:
Skipping a deployment with the pagesgit provider because this is not on the required runtime
Skipping a deployment with the pagesgit provider because a custom condition was not met
What does the first line mean?