Created
January 8, 2018 21:51
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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