File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n
1111rm -fr ./gh-pages
1212git config --global user.email " devxsdk@us.ibm.com"
1313git config --global user.name " ibm-devx-sdk"
14- git clone --branch=gh-pages https://${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
14+ git clone --branch=gh-pages https://x-access-token: ${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
1515# Configure the remote URL with the token for pushing
16- git remote set-url origin https://x-access-token:${GITHUB_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git
16+ # git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
17+ printf " \n>>>>> GH version...\n"
18+ gh --version
19+ printf " \n>>>>> GH auth status...\n"
20+ gh auth status
1721
1822printf " \n>>>>> Finished cloning...\n"
1923
2024pushd gh-pages
2125
22-
2326# Create a new directory for this branch/tag and copy the javadocs there.
2427printf " \n>>>>> Copying javadocs to new directory: docs/%s\n" ${GITHUB_TAG}
2528rm -rf docs/${GITHUB_TAG}
@@ -35,7 +38,8 @@ printf "\n>>>>> Added files...\n"
3538git commit -m " docs: latest javadoc for ${GITHUB_TAG} "
3639printf " \n>>>>> Committed changes...\n"
3740git remote -v
38- git push -f origin gh-pages
41+ # git push -f origin gh-pages
42+ gh push origin gh-pages
3943printf " \n>>>>> Pushed changes...\n"
4044
4145popd
You can’t perform that action at this time.
0 commit comments