@@ -9,17 +9,16 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB
99
1010printf " \n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111rm -fr ./gh-pages
12- git config --global user.email " devxsdk@us.ibm.com"
13- git config --global user.name " ibm-devx-sdk"
14- git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
15- git config --global url." x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git"
12+ # git config --global user.email "devxsdk@us.ibm.com"
13+ # git config --global user.name "ibm-devx-sdk"
14+ # git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
15+ # git config --global url."x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git"
1616# Configure the remote URL with the token for pushing
1717# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
18- printf " \n>>>>> GH version...\n"
19- gh --version
20- printf " \n>>>>> GH auth status...\n"
21- gh auth status
2218
19+ git config --global user.email " devxsdk@us.ibm.com"
20+ git config --global user.name " ibm-devx-sdk"
21+ git clone --branch=gh-pages https://${GH_TOKEN} @github.com/IBM/platform-services-java-sdk.git gh-pages
2322printf " \n>>>>> Finished cloning...\n"
2423
2524pushd gh-pages
@@ -39,8 +38,7 @@ printf "\n>>>>> Added files...\n"
3938git commit -m " docs: latest javadoc for ${GITHUB_TAG} "
4039printf " \n>>>>> Committed changes...\n"
4140git remote -v
42- # git push -f origin gh-pages
43- git push --repo=" https://x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git" -f gh-pages
41+ git push -f origin gh-pages
4442printf " \n>>>>> Pushed changes...\n"
4543
4644popd
0 commit comments