Skip to content

Commit 80bef15

Browse files
committed
For #607. Try to save javadoc Gradle artifacts
1 parent c0d7640 commit 80bef15

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,27 @@ 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/reports/javadoc/test/
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+
86+
# Generate coverage report
87+
6788
- name: Save coverage report
6889
uses: actions/upload-artifact@v4
6990
with:

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ on:
2828
# These ignores are specific to this project
2929
- 'run-with-gradle.sh'
3030
- '.github/workflows/*gradle*'
31-
workflow_dispatch:
3231

3332
jobs:
3433
build:
@@ -64,7 +63,7 @@ jobs:
6463
- name: Execute run script
6564
run: earthly --secret OWASP_NVD_API_KEY +run-with-maven
6665

67-
# Save artifacts for build
66+
# Save artifacts for build
6867
# See Earthfile that copies these from container to local
6968

7069
# Javadoc HTML and jars
@@ -97,7 +96,7 @@ jobs:
9796
if-no-files-found: error
9897
path: target/modern-java-practices-0-SNAPSHOT-test-javadoc.jar
9998

100-
# Coverage badge report
99+
# Coverage coverage report
101100

102101
- name: Save coverage report
103102
uses: actions/upload-artifact@v4
@@ -106,7 +105,7 @@ jobs:
106105
if-no-files-found: error
107106
path: target/site/jacoco/
108107

109-
# Generage coverage badge for README
108+
# Generate coverage badge for README
110109
# Gradle builds are similar but will require configuration the path for the
111110
# CSV JaCoCo report.
112111

0 commit comments

Comments
 (0)