Skip to content

Commit 313a655

Browse files
committed
chore: more javadoc debugging
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent ab48392 commit 313a655

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

build/publishJavadoc-gha.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n
1111
rm -fr ./gh-pages
1212
git config --global user.email "devxsdk@us.ibm.com"
1313
git 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

1822
printf "\n>>>>> Finished cloning...\n"
1923

2024
pushd gh-pages
2125

22-
2326
# Create a new directory for this branch/tag and copy the javadocs there.
2427
printf "\n>>>>> Copying javadocs to new directory: docs/%s\n" ${GITHUB_TAG}
2528
rm -rf docs/${GITHUB_TAG}
@@ -35,7 +38,8 @@ printf "\n>>>>> Added files...\n"
3538
git commit -m "docs: latest javadoc for ${GITHUB_TAG}"
3639
printf "\n>>>>> Committed changes...\n"
3740
git remote -v
38-
git push -f origin gh-pages
41+
# git push -f origin gh-pages
42+
gh push origin gh-pages
3943
printf "\n>>>>> Pushed changes...\n"
4044

4145
popd

0 commit comments

Comments
 (0)