Skip to content

New file `.gitlab-ci.yml` template for Hexo contains incorrect build instructions

Summary

When creating a new file, the .gitlab-ci.yml template for Hexo has build script for Hyde, instead of Hexo.

Steps to reproduce

  1. Start adding a new file via web interface on any repo

  2. Change filename to .gitlab-ci.yml

  3. CI template select should appear

  4. In "Choose template", go for Hexo

  5. Contents of new file editor replaced with:

    # This file is a template, and might need editing before it works on your project.
    # Full project: https://gitlab.com/pages/hexo
    image: python:2.7
    
    cache:
      paths:
      - vendor/
    
    test:
      stage: test
      script:
        - pip install hyde
        - hyde gen
      except:
        - master
    
    pages:
      stage: deploy
      script:
        - pip install hyde
        - hyde gen -d public
      artifacts:
        paths:
        - public
      only:
        - master

Expected behavior

As steps above, but .gitlab-ci.yml file should be replaced with one similar to the one in the Hexo pages demo: https://gitlab.com/pages/hexo#gitlab-ci

Relevant logs and/or screenshots

Screenshot_2016-08-08_13.15.46

Possible fixes

Looks like this template file needs updating: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/vendor/gitlab-ci-yml/Pages/Hexo.gitlab-ci.yml