Skip to content

Instantly share code, notes, and snippets.

@farhang
Created September 25, 2019 05:54
Show Gist options
  • Select an option

  • Save farhang/498f8f8c1ea0ddaae08fb238df12d3e6 to your computer and use it in GitHub Desktop.

Select an option

Save farhang/498f8f8c1ea0ddaae08fb238df12d3e6 to your computer and use it in GitHub Desktop.
deploy angular project to github pages using travis CI
dist: xenial
sudo: false
language: node_js
node_js:
- "10"
cache:
directories:
- ./node_modules
install:
- npm install
script:
- npm run-script build
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: dist/angular-github-pages-travis
on:
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment