doc: update gitlab-ci.yml

This commit is contained in:
Leon Xu committed 2021-08-27 00:21:17 -07:00
1 parent 68f226c750
commit ba94aa05c1
1 file changed
+12 -14
+12 -14
View File
@@ -1,23 +1,21 @@
build website: # requiring the environment of NodeJS 4.2.2
stage: build image: node:latest
# requiring the environment of NodeJS 4.2.2 # add 'node_modules' to cache for speeding up builds
image: node:latest cache:
# add 'node_modules' to cache for speeding up builds paths:
cache: - node_modules/ # Node modules and dependencies
paths: before_script:
- node_modules/ # Node modules and dependencies - npm install -g hexo-cli # Install Hexo itself
before_script: - npm install # Install Hexo modules and dependencies
- npm install -g hexo-cli # Install Hexo itself - npm install hexo-renderer-pug # Install Butterfly pug
- npm install # Install Hexo modules and dependencies - npm install hexo-renderer-stylus # Install stylus renderer
- 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 # the 'pages' job will deploy and build your site to the 'public' path
deploy via site configuration: deploy via site configuration:
stage: deploy stage: deploy
script: script:
- hexo clean # Hexo clean previous static site - hexo clean # Hexo clean previous static site
- hexo generate # Hexo generate Static Site - hexo generate # Hexo generate Static Site
- hexo deploy # Hexo deploy content - hexo deploy
artifacts: artifacts:
paths: paths:
- public - public