JavaDoc publishing support in CI #62
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: Build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'microsoft' | |
cache: 'maven' | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.9.8 | |
- name: Build with Maven | |
run: mvn clean install | |
- name: Build Aspire4J JavaDoc | |
run: mvn -f aspire4j/pom.xml clean javadoc:aggregate | |
- name: Upload JavaDoc to Azure Blob Storage | |
uses: bacongobbler/[email protected] | |
with: | |
source_dir: 'aspire4j/target/site/apidocs' | |
container_name: '$web' | |
connection_string: ${{ secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING }} | |
sync: 'true' |