Riccardo Balbo %!s(int64=4) %!d(string=hai) anos
pai
achega
8cb263874b
Modificáronse 2 ficheiros con 10 adicións e 1 borrados
  1. 3 1
      .github/workflows/main.yml
  2. 7 0
      make.sh

+ 3 - 1
.github/workflows/main.yml

@@ -32,11 +32,13 @@ jobs:
           git reset --hard `git rev-list --max-parents=0 HEAD`
           cd ..
 
+
+
     - name: Build
       run: |
         cd project
         chmod +x ./make.sh
-        NO_CONTAINER=1 HEADLESS=1 ./make.sh         
+        NO_CONTAINER=1 HEADLESS=1  ./make.sh         
         mkdir -p public
         echo "1" > public/.nojekyll
 

+ 7 - 0
make.sh

@@ -24,6 +24,11 @@ then
 fi
 
 
+if [ "$DONT_COMPILE_LESS" = "" ];
+then
+    export CMD="npm install less -g&&lessc static/css/style.less static/css/style.css&&$CMD"    
+fi
+
 
 if [ "$ARGS" = "" ];
 then
@@ -62,6 +67,8 @@ then
     export ARGS="$ARGS -p$PORT:1313"
 fi
 
+
+
 if [ "$1"  = "server" ];
 then
     export CMD="$CMD --bind 0.0.0.0"