Skip to content

Commit 1a214bf

Browse files
committed
chore: fix gh_token
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent b5f733e commit 1a214bf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/publish.yml

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

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

5354
- name: Publish Javadocs
5455
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658
GITHUB_REPO_SLUG: ${{ github.repository }}
5759
GITHUB_TAG: ${{ github.ref_name}}
5860
run: |

build/publishJavadoc-gha.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ 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"
14-
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"
12+
# git config --global user.email "devxsdk@us.ibm.com"
13+
# git config --global user.name "ibm-devx-sdk"
14+
# 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-
printf "\n>>>>> GH version...\n"
19-
gh --version
20-
printf "\n>>>>> GH auth status...\n"
21-
gh auth status
2218

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
2322
printf "\n>>>>> Finished cloning...\n"
2423

2524
pushd gh-pages
@@ -39,8 +38,7 @@ printf "\n>>>>> Added files...\n"
3938
git commit -m "docs: latest javadoc for ${GITHUB_TAG}"
4039
printf "\n>>>>> Committed changes...\n"
4140
git remote -v
42-
# git push -f origin gh-pages
43-
git push --repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git" -f gh-pages
41+
git push -f origin gh-pages
4442
printf "\n>>>>> Pushed changes...\n"
4543

4644
popd

0 commit comments

Comments
 (0)