Merge pull request #317 from bitpay/dependabot/maven/org.apache.maven… #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
push: | |
branches: | |
- '*.*.x' | |
concurrency: | |
group: documentation | |
cancel-in-progress: true | |
jobs: | |
javadoc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: 'corretto' | |
- name: generate docs | |
run: | | |
rm -rf docs | |
mkdir docs | |
mvn javadoc:javadoc | |
mv target/site/apidocs/* docs/ | |
- name: git commit | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "" | |
git add docs/ | |
git commit -m "Update javadoc" || echo "No changes to commit" | |
git push |