doc: update gitlab-ci.yml
This commit is contained in:
1 parent
38b888d1c6
commit
1cd415f844
1 file changed
+12
-14
+12
-14
@@ -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
|
||||
|
||||
Reference in new issue
Block a user