Skip to content

Commit 3cd96e1

Browse files
committed
chore: test hardocded GH_TOKEN in actions settings
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 1a214bf commit 3cd96e1

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
uses: actions/checkout@v4
4040
with:
4141
fetch-depth: 0
42-
# ref: gh-pages
4342

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

5453
- name: Publish Javadocs
5554
env:
56-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5856
GITHUB_REPO_SLUG: ${{ github.repository }}
5957
GITHUB_TAG: ${{ github.ref_name}}
6058
run: |

build/publishJavadoc-gha.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ 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"
12+
git config --global user.email "idsorg@us.ibm.com"
13+
git config --global user.name "idsorg"
14+
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
1415
# git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
15-
# git config --global url."x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git"
1616
# Configure the remote URL with the token for pushing
1717
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
18-
19-
git config --global user.email "devxsdk@us.ibm.com"
20-
git config --global user.name "ibm-devx-sdk"
21-
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/IBM/platform-services-java-sdk.git gh-pages
2218
printf "\n>>>>> Finished cloning...\n"
2319

20+
gh auth status
21+
22+
printf "\n>>>>> Finished checking gh auth status...\n"
23+
2424
pushd gh-pages
2525

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

0 commit comments

Comments
 (0)