Skip to content

Commit 0f52320

Browse files
committed
For #607. Fix Gradle javadoc artifacts
1 parent 706be25 commit 0f52320

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci-earthly-gradle.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ jobs:
6464
- name: Execute run script
6565
run: earthly --secret OWASP_NVD_API_KEY +run-with-gradle
6666

67+
# Save artifacts for build
68+
# See Earthfile that copies these from container to local
69+
70+
# Javadoc HTML and jars
71+
72+
- name: Save Javadoc HTML for main
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: javadoc-html-main
76+
if-no-files-found: error
77+
path: build/docs/javadoc/
78+
79+
- name: Save Javadoc HTML Jar for main
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: javadoc-jar-main
83+
if-no-files-found: error
84+
path: build/libs/modern-java-practices-0-SNAPSHOT-javadoc.jar
85+
6786
- name: Save coverage report
6887
uses: actions/upload-artifact@v4
6988
with:

Earthfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ run-with-gradle:
3333

3434
# Javadocs and jars
3535
SAVE ARTIFACT --keep-ts build/libs/modern-java-practices-0-javadoc.jar
36-
SAVE ARTIFACT --keep-ts build/docs/javadoc/test/ AS LOCAL build/docs/javadoc/test/
36+
SAVE ARTIFACT --keep-ts build/docs/javadoc/ AS LOCAL build/docs/javadoc/
3737

3838
build-with-maven:
3939
COPY mvnw .

0 commit comments

Comments
 (0)