P2P-Develop/PeyangSuperbAntiCheat

View on GitHub
.github/workflows/javadoc.yml

Summary

Maintainability
Test Coverage
name: JavaDoc

on:
    push:
        branches: [develop]
        paths: [src/main/java/**]

jobs:
    gen-javadoc:
        name: Generate Javadoc

        runs-on: ubuntu-latest

        steps:
            - name: Init
              run: export LANG=ja_JP.UTF-8
            - name: Checkout
              uses: actions/checkout@v2
            - name: List files (for Debug)
              run: ls -A
            - name: Set up JDK 1.8
              uses: actions/setup-java@v1
              with:
                  java-version: 1.8
            - name: Generate Javadoc
              run: mvn javadoc:javadoc --file pom.xml
            - name: Stash
              run: git stash -ua
            - name: Change Branch
              uses: actions/checkout@v2
              with:
                  ref: javadoc
            - name: Apply Stash
              run: git stash apply
            - name: Copy Files
              run: cp -rp ./target/site/apidocs/* .
            - name: Remove TempFile
              run: rm -rf target
            - name: Commit Javadoc
              uses: EndBug/add-and-commit@v4
              with:
                  author_name: Javadoc BOT
                  message: Generate Javadoc
                  force: false
                  ref: javadoc
              env:
                  GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}