Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build/publishJavadoc-gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rm -fr ./gh-pages
git config --global user.email "devxsdk@us.ibm.com"
git config --global user.name "ibm-devx-sdk"
git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
git config --global url."x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git"
# Configure the remote URL with the token for pushing
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
printf "\n>>>>> GH version...\n"
Expand Down Expand Up @@ -39,7 +40,7 @@ git commit -m "docs: latest javadoc for ${GITHUB_TAG}"
printf "\n>>>>> Committed changes...\n"
git remote -v
# git push -f origin gh-pages
gh push origin gh-pages
git push --repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git" -f gh-pages
printf "\n>>>>> Pushed changes...\n"

popd
Expand Down