[maven-release-plugin] prepare for next development iteration #7
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: Generate Java Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: corretto | |
- name: Build with Maven | |
run: mvn clean install | |
- name: Generate Javadocs | |
run: mvn javadoc:javadoc | |
# Publishes Javadocs to GitHub Pages by pushing to `gh-pages` branch | |
- name: Deploy Javadocs to GitHub Pages | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
mvn scm-publish:publish-scm | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |