Skip to content

Commit 03abf62

Browse files
committed
add token to netrc and only commit if necessary
1 parent 951b8c4 commit 03abf62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ jobs:
6363
script:
6464
- git config --global user.name "${GH_NAME}"
6565
- git config --global user.email "${GH_EMAIL}"
66+
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
6667
- git fetch --unshallow
6768
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
6869
- git fetch origin
6970
- git checkout gh-pages
7071
- git checkout $(git rev-list -n1 HEAD -- index.yaml)~1 -- index.yaml > /dev/null 2>&1 | true
7172
- git add index.yaml
7273
- git diff-index --quiet HEAD || git commit -m "Auto-restore Helm chart repo index after Docusaurus publish"
73-
- git diff-index --quiet HEAD || git remote add origin-pages https://${GH_TOKEN}@github.com/Accenture/reactive-interaction-gateway.git > /dev/null 2>&1
74-
- git diff-index --quiet HEAD || git push --set-upstream origin-pages gh-pages
74+
- git push
7575
- stage: sourcedocs
7676
<<: *elixir-env
7777
script:

0 commit comments

Comments
 (0)