Merge pull request #660 from pylonmc/human/performance-and-misc-stuff #235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Kdocs/Javadocs | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - "**/src/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| deploy-docs: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4.6.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4.2.2 | |
| - name: Check out custom Dokka | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: pylonmc/dokka | |
| ref: rebar | |
| - name: Publish Dokka to Maven local | |
| run: ./gradlew publishToMavenLocal -Pversion=2.1.0-rebar-SNAPSHOT | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Build docs | |
| run: ./gradlew :rebar:dokkaGenerate -PuseRebarDokka=true | |
| - name: Upload docs | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: 'rebar/build/dokka' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |