Skip to content

Commit

Permalink
fix: publish javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangst committed Jul 29, 2022
1 parent 12f16ce commit df0be9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
runs-on: ubuntu-latest
needs: [verify, test]
if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore')"
permissions: write-all
steps:
- name: Setup Extensions
uses: actions/checkout@v2
Expand Down
4 changes: 3 additions & 1 deletion build/publishJavadoc_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ printf "\n>>>>> Publishing javadoc for release build: %s\n" ${GHA_TAG}

printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
rm -fr ./gh-pages
git config user.email "[email protected]"
git config user.name "Deb Angst"
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/merative/whcs-java-sdk.git gh-pages > /dev/null
printf "\n>>>>> Finished cloning...\n"

Expand All @@ -28,7 +30,7 @@ printf "\n>>>>> Updated 'docs/latest' symlink:\n"
ls -l latest
popd

printf "\n>>>>> Committing new javadoc for commit: %s\\n" ${GHA_COMMIT}
printf "\n>>>>> Committing new javadoc for commit: %s\n" ${GHA_COMMIT}
git add -f .
git commit -m "chore: Javadoc for release ${GHA_TAG} (${GHA_COMMIT})"
git push -f origin gh-pages
Expand Down
1 change: 0 additions & 1 deletion build/setMavenVersion_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export GHA_TAG=${GHA_TAG##*/} # Get the last part for true tag name

if [[ -n "${GHA_TAG}" ]]; then
printf "\n>>>>> Setting artifact version to: %s\n" ${GHA_TAG}
printf "\n>>>>> If we were to use colon 1: %s\n" ${GHA_TAG:1}
mvn versions:set -DnewVersion=${GHA_TAG} -DgenerateBackupPoms=false
else
printf "\n>>>>> Bypassing artifact version setting for non-tagged build: %s\n" ${GHA_TAG}
Expand Down

0 comments on commit df0be9a

Please sign in to comment.