#1357 Load openapi specifications from jar maven dependency (GAV) of … #1573
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: Build Website | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "main-lts" | |
| paths-ignore: | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| - '*.md' | |
| - '*.adoc' | |
| - '*.txt' | |
| - '.all-contributorsrc' | |
| pull_request: | |
| paths-ignore: | |
| - '.gitignore' | |
| - 'CODEOWNERS' | |
| - 'LICENSE' | |
| - '*.md' | |
| - '*.txt' | |
| - '.all-contributorsrc' | |
| jobs: | |
| build-website: | |
| name: Build Website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| cache: 'maven' | |
| - name: Build with Maven | |
| run: mvn '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml -DskipTests | |
| - name: Store PR id | |
| if: github.event_name == 'pull_request' | |
| run: | | |
| echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt | |
| - name: Publishing directory for PR preview | |
| if: github.event_name == 'pull_request' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: site | |
| path: ./docs/target/generated-docs | |
| retention-days: 3 |