From 3cd96e1f306fab9e1bb5476062b7b347490bb959 Mon Sep 17 00:00:00 2001 From: BRIAN GLEESON Date: Mon, 9 Mar 2026 12:08:45 +0000 Subject: [PATCH] chore: test hardocded GH_TOKEN in actions settings Signed-off-by: BRIAN GLEESON --- .github/workflows/publish.yml | 4 +--- build/publishJavadoc-gha.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be2bbf6..06f0fc0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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: | diff --git a/build/publishJavadoc-gha.sh b/build/publishJavadoc-gha.sh index f9c9816..4870b81 100755 --- a/build/publishJavadoc-gha.sh +++ b/build/publishJavadoc-gha.sh @@ -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.