Commit e3443c2f authored by Pietro Saccardi's avatar Pietro Saccardi

Added automatic build

parent 20377beb
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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment