File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ 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"
1412git clone --branch=gh-pages https://${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
13+ # Configure the remote URL with the token for pushing
14+ git remote set-url origin https://x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git
1515
1616printf " \n>>>>> Finished cloning...\n"
1717
1818pushd gh-pages
1919
20+
2021# Create a new directory for this branch/tag and copy the javadocs there.
2122printf " \n>>>>> Copying javadocs to new directory: docs/%s\n" ${GITHUB_TAG}
2223rm -rf docs/${GITHUB_TAG}
@@ -28,8 +29,12 @@ printf "\n>>>>> Generating gh-pages index.html...\n"
2829
2930printf " \n>>>>> Committing new javadoc...\n"
3031git add -f .
32+ printf " \n>>>>> Added files...\n"
3133git commit -m " docs: latest javadoc for ${GITHUB_TAG} "
34+ printf " \n>>>>> Committed changes...\n"
35+ git remote -v
3236git push -f origin gh-pages
37+ printf " \n>>>>> Pushed changes...\n"
3338
3439popd
3540
You can’t perform that action at this time.
0 commit comments