.gitlab-ci.yml 449 Bytes
Newer Older
Pietro Saccardi's avatar
Pietro Saccardi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
stages:
  - build

build:less:
  stage: build
  image: appleboy/node-less
  variables:
    PLUGIN_NAME: MittelTheme
    LESS_SRC: Template/css/app.less
    LESS_OUTPUT: Template/css/main.css
  script:
    - /usr/local/bin/lessc "${LESS_SRC}" > "${LESS_OUTPUT}"
    - git archive HEAD --prefix="${PLUGIN_NAME}/" --format=zip -o "${PLUGIN_NAME}.zip"
    - zip -d "${PLUGIN_NAME}.zip" "${LESS_SRC}"
  artifacts:
    paths:
      - "${PLUGIN_NAME}.zip"