file: create .gitlab-ci.yml
This commit is contained in:
1 parent
6ba36e51bc
commit
fb701d09ac
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
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
|
||||||
|
script:
|
||||||
|
- npm install -g hexo-cli # Install Hexo itself
|
||||||
|
- npm install # Install Hexo modules and dependencies
|
||||||
|
- hexo version
|
||||||
|
# the 'pages' job will deploy and build your site to the 'public' path
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
Reference in new issue
Block a user