From ba94aa05c1500a87c989d2357f4ebfacafc2dee4 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Fri, 27 Aug 2021 00:21:17 -0700 Subject: [PATCH] doc: update gitlab-ci.yml --- .gitlab-ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c996b9e..710ecd1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,23 +1,21 @@ -build website: - stage: build - # requiring the environment of NodeJS 4.2.2 - image: node:latest - # add 'node_modules' to cache for speeding up builds - cache: - paths: - - node_modules/ # Node modules and dependencies - before_script: - - npm install -g hexo-cli # Install Hexo itself - - npm install # Install Hexo modules and dependencies - - npm install hexo-renderer-pug # Install Butterfly pug - - npm install hexo-renderer-stylus # Install stylus renderer +# requiring the environment of NodeJS 4.2.2 +image: node:latest +# add 'node_modules' to cache for speeding up builds +cache: + paths: + - node_modules/ # Node modules and dependencies +before_script: + - npm install -g hexo-cli # Install Hexo itself + - npm install # Install Hexo modules and dependencies + - npm install hexo-renderer-pug # Install Butterfly pug + - npm install hexo-renderer-stylus # Install stylus renderer # the 'pages' job will deploy and build your site to the 'public' path deploy via site configuration: stage: deploy script: - hexo clean # Hexo clean previous static site - hexo generate # Hexo generate Static Site - - hexo deploy # Hexo deploy content + - hexo deploy artifacts: paths: - public