curben 2018-09-19 21:01:50 +09:30
parent e3b6dc8404
commit 5d013e97b3
1 changed files with 10 additions and 7 deletions

View File

@ -1,16 +1,19 @@
# Use latest version of Node.js
image: node:latest image: node:latest
pages: pages:
cache: cache: # add cache to 'node_modules' for speeding up builds
paths: paths:
- node_modules/ - node_modules/ # Node modules and dependencies
script: script:
- npm install hexo-cli -g - npm install hexo-cli -g
- npm install - npm install
- hexo deploy - hexo deploy # deploy the site
- find public -type f -iregex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -execdir gzip -f --keep {} \; # Compress files
artifacts: artifacts:
paths: paths:
- public - public # deploy to the 'public' folder
only: only:
- master - master # this job will affect only the 'master' branch