Add .gitlab-ci.yml
This commit is contained in:
1 parent
95165c8d8d
commit
9bb084302e
1 file changed
+22
@@ -0,0 +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 pug
|
||||||
|
- npm install hexo-renderer-stylus # Install stylus
|
||||||
|
# the 'pages' job will deploy and build your site to the 'public' path
|
||||||
|
pages:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- hexo clean # HExo clean prior site
|
||||||
|
- hexo generate # Hexo generate Static Site
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master # this job will affect only the 'master' branch
|
||||||
Reference in new issue
Block a user