grunt-gh-pages拡張を使用してghブランチにコミットしようとしています。ローカルでうまく動作しますが、TRAVIS-CIを使用すると失敗します。私は次のエラーを取得するレポオプション更新時にtravis ci failingによるコミット
Warning: fatal: remote error:
You can't push to git://github.com/tusharmath/tusharm.com.git
Use https://github.com/tusharmath/tusharm.com.git
Use --force to continue.
そして - -
Warning: remote: Anonymous access to tusharmath/tusharm.com.git denied.
fatal: Authentication failed for 'https://github.com/tusharmath/tusharm.com.git/'
Use --force to continue.
Aborted due to warnings.
をだから、基本的に、私はちょうどトラヴィス-CIはGH-内のファイルをコミットしたいことは、次のエラーメッセージを表示します私のレポのページ支店。それを行う方法はありますか?あなたは確かにすることができ、問題
language: node_js
node_js:
- '0.11'
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis-CI"
after_script:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- node ./node_modules/grunt-cli/bin/grunt release
env:
global:
secure: {"lots-of-seemingly-random-characters"}
:
は、その後、あなたの
after_script
やafter_success
セクションは次のように変更することができます。 – Tushar完全なビルドログを確認できます。https://travis-ci.org/tusharmath/tusharmath.github.io/builds/9803395 – Tushar
エラーメッセージは、何が欠落しているかについてはっきりしています。あなたの '.travis.yml'でさらに' git config'コールに '--global'を追加しようとしましたか? – henrikhodne