Skip to content

Commit 5f75851

Browse files
committed
chore: debug javadoc issue
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 5aa108e commit 5f75851

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

build/publishJavadoc-gha.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB
99

1010
printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111
rm -fr ./gh-pages
12-
git config --global user.email "devxsdk@us.ibm.com"
13-
git config --global user.name "ibm-devx-sdk"
1412
git 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

1616
printf "\n>>>>> Finished cloning...\n"
1717

1818
pushd gh-pages
1919

20+
2021
# Create a new directory for this branch/tag and copy the javadocs there.
2122
printf "\n>>>>> Copying javadocs to new directory: docs/%s\n" ${GITHUB_TAG}
2223
rm -rf docs/${GITHUB_TAG}
@@ -28,8 +29,12 @@ printf "\n>>>>> Generating gh-pages index.html...\n"
2829

2930
printf "\n>>>>> Committing new javadoc...\n"
3031
git add -f .
32+
printf "\n>>>>> Added files...\n"
3133
git commit -m "docs: latest javadoc for ${GITHUB_TAG}"
34+
printf "\n>>>>> Committed changes...\n"
35+
git remote -v
3236
git push -f origin gh-pages
37+
printf "\n>>>>> Pushed changes...\n"
3338

3439
popd
3540

0 commit comments

Comments
 (0)