diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-04-02 10:09:08 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2022-04-02 11:29:45 +0700 |
commit | 532450373b29d4c254ccf3a6ea3b43d21d2f8ae7 (patch) | |
tree | cb1f725c7fe7ececa0d0ec75e1cd5e0dd8b1568d /.github | |
parent | 4878866c98e0d0f5dfe8e0551e92d5581e9573a6 (diff) | |
download | aspectj-532450373b29d4c254ccf3a6ea3b43d21d2f8ae7.tar.gz aspectj-532450373b29d4c254ccf3a6ea3b43d21d2f8ae7.zip |
CI build: create docs and attach them to build
In order to create the docs separately, running just a single module,
add 'install' to the previous build step, so the 'docs' module can find
the 'lib' dummy JAR in the local Maven repo.
Relates to #150.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/maven.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 93da5164e..d440eaf90 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -52,7 +52,18 @@ jobs: maven- - name: Compile + package code - run: ./mvnw -B --file pom.xml -DskipTests package + # Also install (not just package) for subsequent build steps + run: ./mvnw -B --file pom.xml -DskipTests install + + - name: Create docs + run: ./mvnw -B --file pom.xml -DskipTests process-resources -pl docs -P create-docs + + - name: Attach docs to build + uses: actions/upload-artifact@v3 + with: + name: aspectj-docs-java${{ matrix.java }} + # Re-zip docs directory instead of wrapping existing distribution archive into another zip archive + path: aj-build/dist/docs/ - name: Run Tests # Tests in module ajde call Swing/AWT classes. Without frame buffer they throw |