name: Pages on: workflow_dispatch: workflow_run: workflows: - Main types: - completed jobs: pages: runs-on: ubuntu-latest if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - uses: actions/setup-java@v2 with: distribution: "zulu" java-version: 11 check-latest: true cache: "maven" - name: Create GitHub Pages run: mvn site - name: Deploy GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/site