release:
  image: registry.gitlab.com/rxap/gitlab-ci/semantic-release:${RXAP_CI_CONFIG_REF}
  stage: release
  script: semantic-release
  interruptible: true
  rules:
    - if: '$CI_COMMIT_REF_NAME =~ /^release|release-candidate|preview|[0-9]+\.[0-9]+\.x|[0-9]+\.x$/ || $CI_COMMIT_REF_NAME =~ /^[0-9]+\.x/ || $CI_COMMIT_REF_NAME =~ /^[0-9]+\.[0-9]+\.x/'
      when: on_success
