Merge pull request #1181 from ably/release/1.5.0 #1193
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| deployments: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-region: eu-west-2 | |
| role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-ably-java | |
| role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | |
| - name: Set up the JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Build docs | |
| run: ./gradlew javadoc | |
| - name: Upload Documentation | |
| uses: ably/sdk-upload-action@v2 | |
| with: | |
| sourcePath: java/build/docs/javadoc | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| artifactName: javadoc |