File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050
5151 - name : Publish Javadocs
5252 env :
53- # GH_TOKEN: ${{ secrets.GH_TOKEN }}
54- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5553 GITHUB_REPO_SLUG : ${{ github.repository }}
5654 GITHUB_TAG : ${{ github.ref_name}}
5755 run : |
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Required environment variables:
4- # GH_TOKEN
54# GITHUB_REPO_SLUG
65# GITHUB_TAG
76
@@ -15,12 +14,16 @@ printf "\n>>>>> Checking out gh-pages branch...\n"
1514rm -fr ./gh-pages
1615git config --global user.email " github-actions[bot]@users.noreply.github.com"
1716git config --global user.name " github-actions[bot]"
18- git checkout -b gh-pages origin/gh-pages
17+ # Checkout the gh-pages branch as a copy of latest in main
18+ git checkout -b gh-pages --no-guess
1919git status
2020printf " \n>>>>> Finished checking out...\n"
2121
2222printf " \n>>>>> Generating Javadoc...\n"
2323mvn -B versions:set -DnewVersion=" ${GITHUB_TAG} " -DgenerateBackupPoms=false
24+ printf " \n>>>>> [DEBUG] build fodler contents...\n"
25+ ls -la build
26+ printf " \n>>>>> [/DEBUG] build fodler contents...\n"
2427mvn clean javadoc:aggregate --settings build/.github.settings.xml
2528printf " \n>>>>> Finished generating Javadoc...\n"
2629
You can’t perform that action at this time.
0 commit comments