-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.24 KB
/
docs-publish.yaml
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
43
44
45
name: Publish SDK Docs
on:
workflow_run:
workflows:
[
SDK Core Publish,
Lightspark SDK Publish,
Wallet SDK Publish,
Crypto SDK Publish,
]
types:
- completed
jobs:
publish-docs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: macos-11
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
- name: "Configure AWS credentials"
uses: "aws-actions/configure-aws-credentials@v1"
with:
role-to-assume: "arn:aws:iam::${{secrets.AWS_ACCOUNT_ID_DEV}}:role/github-actions-sdk"
aws-region: "us-west-2"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build dokka
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: dokkaHtmlMultiModule
- name: "Upload to S3"
run: |
aws s3 sync build/dokka/htmlMultiModule s3://${{secrets.FRONTEND_BUCKET_DEV}}/docs/reference/kotlin --delete