feat(docs): integrate Javadoc into Antora documentation site #1
This file contains hidden or 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: 'Early Access' | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| earlyaccess: | |
| name: 'Early Access' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel previous run | |
| uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| access_token: ${{ secrets.GIT_ACCESS_TOKEN }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 21 | |
| distribution: 'zulu' | |
| - name: Cache Gradle | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Cache Gradle wrapper | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradlew-${{ hashFiles('**/gradlew') }} | |
| restore-keys: ${{ runner.os }}-gradlew- | |
| - name: Build | |
| run: | | |
| ./gradlew build test aggregateTestReport -S | |
| - name: Upload test reports | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-report | |
| path: | | |
| build/reports/tests/aggregate | |
| - name: Version | |
| id: vars | |
| shell: bash | |
| run: | | |
| VERSION=$(grep '^version\s*=\s*' gradle.properties | cut -d'=' -f2 | xargs) | |
| echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT" | |
| if [[ "$VERSION" == *-SNAPSHOT ]]; then | |
| echo "SNAPSHOT=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "SNAPSHOT=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Release | |
| if: ${{ steps.vars.outputs.SNAPSHOT }} | |
| uses: jreleaser/release-action@v2 | |
| with: | |
| arguments: release | |
| version: 'latest' | |
| env: | |
| JRELEASER_GITHUB_PASSWORD: ${{ secrets.GIT_ACCESS_TOKEN }} | |
| JRELEASER_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} | |
| JRELEASER_GITHUB_USERNAME: ${{ secrets.GIT_USER }} | |
| JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | |
| JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | |
| JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| JRELEASER_PROJECT_VERSION: ${{ steps.vars.outputs.VERSION }} | |
| JRELEASER_SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| - name: JReleaser output | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact | |
| path: | | |
| out/jreleaser/trace.log | |
| out/jreleaser/output.properties |