diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml new file mode 100644 index 00000000..b1a1d1dd --- /dev/null +++ b/.github/workflows/gh-deploy.yml @@ -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" diff --git a/pom.xml b/pom.xml index 9c298a27..bf2d5d6b 100644 --- a/pom.xml +++ b/pom.xml @@ -76,6 +76,7 @@ false -Xdoclint:none + none eng@leancloud.rocks 美味书签(北京)信息技术有限公司 All rights reserved.]]>