Commit 2ab9e87d authored by Federico Falconieri's avatar Federico Falconieri
Browse files

Merge branch 'hoverht-master-patch-18911' into 'master'

fix: disable default minification and add EXTRA_ARGS

See merge request ci/templates!45
parents 63a1543d d7711611
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -8,12 +8,15 @@ pages:
  # before_script:
  #   - git clone https://github.com/matcornic/hugo-theme-learn.git themes/hugo-theme-learn
  variables:
    MINIFY: "false"  # Further minify all files
    MINIFY: "false"
    EXTRA_ARGS: ""
  script:
    - hugo --minify
    - |
      if [ ${MINIFY} = "true" ]; then
        hugo --minify ${EXTRA_ARGS}
        /minify.sh .
      else
        hugo ${EXTRA_ARGS}
      fi
    - gzip -kr public
  artifacts: