Skip to content

Commit 0510a4a

Browse files
jaycee-licopybara-github
authored andcommitted
chore: Set up Github workflow for automatically hosting javadoc on Github Page
PiperOrigin-RevId: 738061832
1 parent aab8079 commit 0510a4a

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish Javadoc
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Deploy JavaDoc 🚀
16+
uses: MathieuSoysal/Javadoc-publisher.yml@v3.0.2
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
javadoc-branch: gh-pages
20+
java-version: 8
21+
target-folder: javadoc
22+
project: maven

pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,12 @@
252252
<artifactId>maven-javadoc-plugin</artifactId>
253253
<version>3.11.2</version>
254254
<configuration>
255-
<doclint>none</doclint>
255+
<doclint>html</doclint>
256256
<nohelp>true</nohelp>
257257
<outputDirectory>${project.build.directory}/javadoc</outputDirectory>
258+
<doctitle>Google Gen AI Java SDK</doctitle>
259+
<source>${maven.compiler.source}</source>
260+
<encoding>UTF-8</encoding>
258261
</configuration>
259262
</plugin>
260263
<plugin>

0 commit comments

Comments
 (0)