Skip to content

Commit 2611a89

Browse files
committed
Use .netrc file for github credentials
1 parent 0859545 commit 2611a89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ deploy:
2424
all_branches: true
2525

2626
after_deploy:
27-
- git remote add github https://$GITHUB_TOKEN:[email protected]/$TRAVIS_REPO_SLUG.git
27+
- echo "machine github.com login $GITHUB_TOKEN password x-oauth-basic" >> ~/.netrc
28+
- chmod 0600 ~/.netrc
29+
- git remote add github https://github.com/$TRAVIS_REPO_SLUG.git
2830
- git fetch github gh-pages
2931
- git checkout -b gh-pages FETCH_HEAD
3032
- mv target/doc docs/$TRAVIS_TAG

0 commit comments

Comments
 (0)