Deployments
Table of Contents
GitHub Pages Deployment reference
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: _site
on:
branch: master
skip-cleanup
- Make sure you have
skip-cleanup
set totrue
, otherwise Travis CI will delete all the files created github-token
- You'll need to generate a personal access token with the
public_repo
orrepo
scope (repo is required for private repositories) Put it on the repository settings menu. local-dir
- Directory to push to GitHub Pages, relative to the current directory, defaults to the current directory