Skip to content

Instantly share code, notes, and snippets.

@JoshuaTheMiller
Created January 8, 2018 21:51
Show Gist options
  • Select an option

  • Save JoshuaTheMiller/ef34d92b2dc4f5c75d233a1cb8d58294 to your computer and use it in GitHub Desktop.

Select an option

Save JoshuaTheMiller/ef34d92b2dc4f5c75d233a1cb8d58294 to your computer and use it in GitHub Desktop.
A Travis-CI config file for deploying an Angular app to a GitHub repo
language: node_js
node_js:
- "8.9.0"
branches:
only:
- master
install:
- npm install -g @angular/cli
before_script:
- npm install
script:
- ng build --prod --base-href ${BASE_HREF}
deploy:
provider: pages
skip_cleanup: true
github_token: ${GITHUB_TOKEN}
repo: ${GITHUB_DEPLOY_REPO}
target_branch: master
local_dir: ${TRAVIS_BUILD_DIR}/dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment