Commit bf650b0d authored by Pietro Saccardi's avatar Pietro Saccardi

Fixing CI/CD

parent d287a1fc
...@@ -11,10 +11,14 @@ build:less: ...@@ -11,10 +11,14 @@ build:less:
before_script: before_script:
- yarn global add less - yarn global add less
- yarn global add less-plugin-clean-css - yarn global add less-plugin-clean-css
- apk add --update --no-cache git zip unzip
script: script:
- /usr/local/bin/lessc "${LESS_SRC}" > "${LESS_OUTPUT}" - /usr/local/bin/lessc "${LESS_SRC}" > "${LESS_OUTPUT}"
after_script:
- git archive HEAD --prefix="${PLUGIN_NAME}/" --format=zip -o "${PLUGIN_NAME}.zip" - git archive HEAD --prefix="${PLUGIN_NAME}/" --format=zip -o "${PLUGIN_NAME}.zip"
- zip -d "${PLUGIN_NAME}.zip" "${LESS_SRC}" - unzip "${PLUGIN_NAME}.zip"
- rm "${PLUGIN_NAME}/${LESS_SRC}"
- cp "${LESS_OUTPUT}" "${PLUGIN_NAME}/${LESS_OUTPUT}"
artifacts: artifacts:
paths: paths:
- "${PLUGIN_NAME}.zip" - "${PLUGIN_NAME}"
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