Browse Source

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>
tags/V1_9_19
Alexander Kriegisch 2 years ago
parent
commit
532450373b
1 changed files with 12 additions and 1 deletions
  1. 12
    1
      .github/workflows/maven.yml

+ 12
- 1
.github/workflows/maven.yml View File

@@ -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

Loading…
Cancel
Save