Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 738 Bytes
language: node_js
node_js:
- 11
cache:
yarn: false
directories:
- node_modules
os:
- osx
branches:
only:
- master
before_install:
- export TZ=America/New_York
- date
- npm install -g hexo
install:
- npm install
before_script:
- git config --global user.name "Floyd Pink (via Travis-CI)"
- git config --global user.email "imbleedingme@googlemail.com"
script:
- hexo generate
after_success:
- mkdir .deploy
- cd .deploy
- git clone --depth 1 --branch gh-pages --single-branch $DEPLOY_REPO . || (git init && git remote add -t gh-pages origin $DEPLOY_REPO)
- rm -rf ./*
- cp -r ../public/* .
- git add -A .
- git commit -m "Site updated at $(date +'%Y-%m-%d_%H-%M-%S')"
- git branch -m gh-pages
- git push -q -u origin gh-pages
You can’t perform that action at this time.