File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 : |
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB
99
1010printf " \n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111rm -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
2218printf " \n>>>>> Finished cloning...\n"
2319
20+ gh auth status
21+
22+ printf " \n>>>>> Finished checking gh auth status...\n"
23+
2424pushd gh-pages
2525
2626# Create a new directory for this branch/tag and copy the javadocs there.
You can’t perform that action at this time.
0 commit comments