You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(readme): Add README.md for Javadoc deployment action
- Introduced a README.md file to document the GitHub Action for deploying Javadoc to GitHub Pages.
- Included instructions on how to set up and use the action, with example workflows.
- Detailed the configurable inputs such as `GITHUB_TOKEN`, `BRANCH`, `JAVA_VERSION`, and others.
- Highlighted features like automatic Javadoc generation, customizable branch, JDK configuration, test skipping, and branch cleanup.
- Added a section on licensing under the Apache License 2.0.
Copy file name to clipboardExpand all lines: README.md
+26-20Lines changed: 26 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,35 @@
1
-
# Deploy Javadoc to GitHub Pages
1
+
# 📘 Deploy Javadoc to GitHub Pages
2
2
3
-
This GitHub Action automates the deployment of Javadoc documentation to GitHub Pages. It builds your Java project, generates Javadoc, and publishes it to a GitHub Pages branch.
3
+
This GitHub Action automates the deployment of Javadoc documentation to GitHub Pages. It builds your Java project, generates Javadoc, and publishes it to a specified branch, typically `gh-pages`.
4
4
5
-
## Features
5
+
## ✨ Features
6
6
7
-
-**Automatic Javadoc Generation**: Builds the project and generates Javadoc documentation.
8
-
-**Customizable Branch**: Publish Javadoc to a specified GitHub Pages branch.
9
-
-**JDK Configuration**: Supports multiple JDK versions and distributions.
10
-
-**Test Skipping**: Option to skip tests during the build process.
11
-
-**Branch Cleanup**: Option to clean up old branches before publishing.
7
+
-**Automatic Javadoc Generation**: Automatically builds the project and generates Javadoc documentation.
8
+
-**Customizable Branch**: Allows publishing of Javadoc to a specified branch (default is `gh-pages`).
9
+
-**Flexible JDK Configuration**: Supports multiple JDK versions and distributions, allowing for easy customization.
10
+
-**Optional Test Skipping**: Configurable option to skip tests during the build process.
11
+
-**Branch Cleanup**: Ability to clean up old branches before publishing, ensuring a fresh deployment environment.
12
12
13
-
## Inputs
13
+
## ⚙️ Inputs
14
+
15
+
The following inputs can be configured for this action:
14
16
15
17
### `GITHUB_TOKEN`
16
18
-**Description**: GitHub token used for repository access and authentication.
17
19
-**Required**: Yes
18
20
19
21
### `BRANCH`
20
-
-**Description**: The name of the branch where the Javadoc documentation will be published. Defaults to `'gh-pages'`.
22
+
-**Description**: The branch where the Javadoc documentation will be published. Defaults to `'gh-pages'`.
21
23
-**Required**: No
22
24
-**Default**: `'gh-pages'`
23
25
24
26
### `BRANCH_CLEANUP`
25
-
-**Description**: Whether to clean up old branches. Set to `'true'` to delete the old branch before publishing. Defaults to `'false'`.
27
+
-**Description**: Whether to clean up old branches before publishing. Set to `'true'` to delete the old branch. Defaults to `'false'`.
26
28
-**Required**: No
27
29
-**Default**: `'false'`
28
30
29
31
### `JAVA_VERSION`
30
-
-**Description**: The version of Java your project is using (e.g., 17).
32
+
-**Description**: The version of Java your project is using (e.g., `17`).
31
33
-**Required**: Yes
32
34
-**Default**: `'17'`
33
35
@@ -37,22 +39,22 @@ This GitHub Action automates the deployment of Javadoc documentation to GitHub P
37
39
-**Default**: `'adopt'`
38
40
39
41
### `SKIP_TESTS`
40
-
-**Description**: Whether to skip tests during the build process. Set to `'true'` to skip tests, `'false'` otherwise.
42
+
-**Description**: Whether to skip tests during the build process. Set to `'true'` to skip tests.
41
43
-**Required**: No
42
44
-**Default**: `'false'`
43
45
44
46
### `DOC_DIRECTORY`
45
-
-**Description**: The directory where the Javadoc documentation is generated. Defaults to `'target/reports/apidocs'`.
47
+
-**Description**: The directory where the Javadoc documentation is generated. Defaults to `'target/site/apidocs'`.
46
48
-**Required**: No
47
-
-**Default**: `'target/reports/apidocs'`
49
+
-**Default**: `'target/site/apidocs'`
48
50
49
-
## Usage
51
+
## 🚀 Usage
50
52
51
53
To use this GitHub Action, create a workflow YAML file in your repository's `.github/workflows` directory.
52
54
53
55
### Example Workflow
54
56
55
-
Here’s an example workflow that builds the project, generates Javadoc, and publishes it to the `gh-pages` branch:
57
+
Below is an example workflow that builds the project, generates Javadoc, and publishes it to the `gh-pages` branch:
56
58
57
59
```yaml
58
60
name: Deploy Javadoc to GitHub Pages
@@ -77,14 +79,15 @@ jobs:
77
79
JAVA_VERSION: '17'
78
80
JAVA_DISTRIBUTION: 'adopt'
79
81
SKIP_TESTS: 'false'
80
-
DOC_DIRECTORY: 'target/reports/apidocs'
82
+
DOC_DIRECTORY: 'target/site/apidocs'
81
83
BRANCH: 'gh-pages'
82
84
BRANCH_CLEANUP: 'false'
83
85
```
84
86
87
+
85
88
### Example with Branch Cleanup
86
89
87
-
If you want to clean up old branches before publishing, set the CLEANUP_BRANCH input to 'true':
90
+
To clean up old branches before publishing, set the `BRANCH_CLEANUP` input to 'true':
88
91
89
92
```yaml
90
93
name: Deploy Javadoc to GitHub Pages
@@ -112,4 +115,7 @@ jobs:
112
115
DOC_DIRECTORY: 'target/reports/apidocs'
113
116
BRANCH: 'gh-pages'
114
117
BRANCH_CLEANUP: 'true'
115
-
```
118
+
```
119
+
120
+
## 📄 License
121
+
This project is licensed under the Apache License 2.0 - see the [LICENSE file](https://github.com/DashioDevs/action-javadocs-deploy/blob/main/LICENSE) for details.
0 commit comments