-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (33 loc) · 969 Bytes
/
javadoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: JavaDoc
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
deployments: write
steps:
- uses: actions/checkout@v3
- 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@v3
with:
java-version: '17'
distribution: 'temurin'
- 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