doc: add build status to gitlab-ci.yml

This commit is contained in:
Leon Xu committed 2021-08-27 12:06:26 -07:00
1 parent eb6d2065ba
commit 684c7a8045
1 file changed
+16 -14
+16 -14
View File
@@ -1,20 +1,22 @@
# 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:
build website:
stage: build
# requiring the environment of latest NodeJS version
image: node:latest
# add 'node_modules' to cache for speeding up builds
cache:
paths:
- node_modules/ # Node modules and dependencies
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
deploy to website:
stage: deploy
script:
- hexo clean # Hexo clean previous static site
- hexo generate # Hexo generate Static Site
- hexo deploy
- hexo deploy # Deploy hexo to domain
only:
- master # this job will affect only the 'master' branch