Skip to content

Commit

Permalink
ci: add javadoc ci (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotEvenANeko authored Dec 5, 2023
1 parent 4dee5b1 commit a4cd17a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "8"

- name: Build javadoc
run: |
mvn install -DskipTests -Dgpg.skip
mvn javadoc:aggregate
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/site/apidocs
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<configuration>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
<doclint>none</doclint>
<author>[email protected]</author>
<bottom><![CDATA[Copyright © 2020, <a href="https://leancloud.cn">美味书签(北京)信息技术有限公司<a> All rights reserved.]]></bottom>
<sourceFileExcludes>
Expand Down

0 comments on commit a4cd17a

Please sign in to comment.