Skip to content

Commit

Permalink
fix: retry javadoc publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dlangst committed Jul 29, 2022
1 parent 74dc41d commit f4a15eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- name: Publish to maven central
if: ${{ steps.next_release.outputs.NEXT_RELEASE != null }}
env:
GHA_TAG: "refs/tags/v${{ steps.next_release.outputs.NEXT_RELEASE }}"
GHA_TAG: "refs/tags/${{ steps.next_release.outputs.NEXT_RELEASE }}"
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
Expand Down
10 changes: 10 additions & 0 deletions build/publishJavadoc_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ ls -l latest
popd

printf "\n>>>>> Committing new javadoc for commit: %s\n" ${GHA_COMMIT}
printf "\n>>>>> Set and display user info"
git config user.email "[email protected]"
git config user.name "Deb Angst"
var1=$(git config --get user.name)
var2=$(git config --get user.email)
printf "\n>>>>> user name %s\n" $var1
printf "\n>>>>> user email %s\n" $var2
printf "\n>>>>> Calling git add"
git add -f .
printf "\n>>>>> Calling git commit"
git commit -m "chore: Javadoc for release ${GHA_TAG} (${GHA_COMMIT})"
printf "\n>>>>> Calling git push"
git push -f origin gh-pages

popd
Expand Down

0 comments on commit f4a15eb

Please sign in to comment.