विफल रहा है मैं अपनी gh-branch को प्रतिबद्ध करने के लिए grunt-gh-pages एक्सटेंशन का उपयोग करने का प्रयास कर रहा हूं। यह स्थानीय रूप से ठीक काम करता है लेकिन जब मैं ट्रैविस-सीआई का उपयोग करता हूं तो यह विफल हो जाता है। यह निम्न त्रुटि संदेश देता है -ट्रेविस सीआई के माध्यम से प्रतिबद्ध
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- में फ़ाइलों को प्रतिबद्ध करने के लिए चाहते हैं मेरे रेपो की पेज शाखा। क्या ऐसा करने के लिए कोई रास्ता है?
अद्यतन अंतिम .travis.yml
कि समस्या
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"}
मैं अपने अनुमान है क्योंकि मैं काफी credential.helper के उपयोग को समझने din't:
फिर अपने
after_script
याafter_success
खंड की तरह संशोधित किया जा सकता। – Tusharआप यहां पूर्ण बिल्ड लॉग देख सकते हैं https://travis-ci.org/tusharmath/tusharmath.github.io/builds/9803395 – Tushar
त्रुटि संदेश क्या गुम है इसके बारे में स्पष्ट है। क्या आपने अपने '.travis.yml' में 'गिट कॉन्फ़िगरेशन' कॉल में' --global' जोड़ने का प्रयास किया है? – henrikhodne