VuePress

VuePress is a minimalistic Vue-powered static site generator

Table of Contents

Auto-deploy to GitHub Pages with Travis CI

The VuePress guide has a generic deploy.sh but it's not needed for Travis.

  1. Create an account at https://travis-ci.com
  2. Create a GitHub personal access token as indicated at the Travis-GitHub Pages guide
  3. Add the token to your Travis project settings as an environment variable named GITHUB_TOKEN.
    • https://travis-ci.com/username/project/settings
  4. Create a file .travis.yml in your repo:
language: node_js
node_js:
  - "node"
install:
  - npm install -g vuepress
script:
  - vuepress build && cd .vuepress/dist && echo 'www.customdomain.com' > CNAME
deploy:
  provider: pages
  skip-cleanup: true
  github-token: $GITHUB_TOKEN
  on:
    branch: master
  local-dir: .vuepress/dist