Merge pull request #6453 from IllianiCBT/startingContracts #236
Workflow file for this run
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: JavaDoc Generation | |
| on: | |
| push: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Check out MekHQ" | |
| uses: actions/checkout@v4 | |
| with: | |
| path: MekHQ | |
| - name: "Check out MegaMekLab" | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: MegaMek/megameklab | |
| ref: master | |
| path: megameklab | |
| - name: Checkout MegaMek | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: MegaMek/megamek | |
| ref: master | |
| path: megamek | |
| - name: Set up Temurin JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| build-scan-publish: true | |
| build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | |
| build-scan-terms-of-use-agree: "yes" | |
| - name: Build with Gradle | |
| working-directory: MekHQ | |
| run: ./gradlew javadoc | |
| - name: Upload static files as artifact | |
| id: deployment | |
| uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action | |
| with: | |
| path: MekHQ/MekHQ/build/docs/javadoc | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |