-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (37 loc) · 1.33 KB
/
docs.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
40
41
42
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v3
# Gradle 7 requires Java 11 to run
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: '19'
- name: Build Documentation
run: |
./gradlew dokkaHtmlMultiModule --stacktrace -PruntimeSecrets=USE_DUMMY_EMPTY_STRING_VALUES
ls -al build/dokka/htmlMultiModule
env:
ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
- name: Configure AWS Credentials
# at some point AWS will release a `v2` of this action. See:
# https://github.com/aws-actions/configure-aws-credentials/issues/489#issuecomment-1278145876
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK}}:role/ably-sdk-builds-ably-asset-tracking-android
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- uses: ably/sdk-upload-action@v2
with:
sourcePath: build/dokka/htmlMultiModule
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: dokka