From 535a290e6f0dcb3c8cf78d8ff2f763ac05697606 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 18 Aug 2024 17:47:55 +0200 Subject: [PATCH] Add generate-javadoc job --- .forgejo/workflows/build-and-test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.forgejo/workflows/build-and-test.yml b/.forgejo/workflows/build-and-test.yml index a634c8f3..bec64409 100644 --- a/.forgejo/workflows/build-and-test.yml +++ b/.forgejo/workflows/build-and-test.yml @@ -37,6 +37,29 @@ jobs: path: | **/build/libs/*-sources.jar if-no-files-found: error + generate-javadoc: + runs-on: docker + container: + image: git.staropensource.de/staropensource/actions-docker:java + steps: + - name: Checkout + uses: https://code.forgejo.org/actions/checkout@v4 + - name: Compile + run: ./gradlew --no-daemon javadoc javadocAll + - name: Upload separate javadoc + uses: https://code.forgejo.org/forgejo/upload-artifact@v4 + with: + name: javadoc-separate + path: | + **/build/docs/javadoc/* + if-no-files-found: error + - name: Upload combined javadoc + uses: https://code.forgejo.org/forgejo/upload-artifact@v4 + with: + name: javadoc-combined + path: | + /build/docs/javadoc/* + if-no-files-found: error test: runs-on: docker container: