Created
August 19, 2018 15:02
-
-
Save loskael/de8db0a74c5aa27f37c074f3a89026fc to your computer and use it in GitHub Desktop.
Travis-CI commit
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 | |
sudo: true | |
node_js: node | |
cache: | |
directories: | |
- node_modules | |
install: | |
- npm install | |
before_script: | |
- git config user.name "Travis-CI" | |
- git config user.email "[email protected]" | |
- git remote rm origin | |
- git remote add origin https://${GH_TOKEN}@${GH_REF} | |
- git checkout master | |
script: npm start | |
after_success: | |
- git add -A . | |
- git status | |
- git commit -a -m "Travis-CI Deployed to Github" | |
- git push origin master | |
- echo -e "DONE.\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment