18 lines
324 B
YAML
18 lines
324 B
YAML
|
sudo: false
|
||
|
language: node_js
|
||
|
node_js:
|
||
|
- 10 # use nodejs v10 LTS
|
||
|
cache: npm
|
||
|
branches:
|
||
|
only:
|
||
|
- master # build master branch only
|
||
|
script:
|
||
|
- hexo generate # generate static files
|
||
|
deploy:
|
||
|
provider: pages
|
||
|
skip-cleanup: true
|
||
|
github-token: $GH_TOKEN
|
||
|
keep-history: true
|
||
|
on:
|
||
|
branch: master
|
||
|
local-dir: public
|