Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# ref: gh-pages

- name: Set up Java 11
uses: actions/setup-java@v4
Expand All @@ -53,8 +52,7 @@ jobs:

- name: Publish Javadocs
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REPO_SLUG: ${{ github.repository }}
GITHUB_TAG: ${{ github.ref_name}}
run: |
Expand Down
14 changes: 7 additions & 7 deletions build/publishJavadoc-gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB

printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
rm -fr ./gh-pages
# git config --global user.email "devxsdk@us.ibm.com"
# git config --global user.name "ibm-devx-sdk"
git config --global user.email "idsorg@us.ibm.com"
git config --global user.name "idsorg"
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
# 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

git config --global user.email "devxsdk@us.ibm.com"
git config --global user.name "ibm-devx-sdk"
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/IBM/platform-services-java-sdk.git gh-pages
printf "\n>>>>> Finished cloning...\n"

gh auth status

printf "\n>>>>> Finished checking gh auth status...\n"

pushd gh-pages

# Create a new directory for this branch/tag and copy the javadocs there.
Expand Down