diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65da237fe0db9679c22e6a9f86c27f67a04446a9..b1017a6b8242baf488f7fbb897b76e77f676aee7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,21 @@ -image: node:4.2.2 +image: node:8.11.2 -pages: - cache: +cache: paths: - - node_modules/ + - node_modules/ - script: - - npm install hexo-cli -g - - npm install - - hexo deploy - artifacts: - paths: - - public - only: - - master +variables: + GIT_SUBMODULE_STRATEGY: recursive + +before_script: + - npm install hexo-cli -g + - npm install + +pages: + script: + - hexo generate + artifacts: + paths: + - public + only: + - master