Publish SDK Docs #167
This file contains 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: Publish SDK Docs | |
on: | |
workflow_dispatch: {} | |
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-12 | |
environment: "docs" | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: "main" | |
- 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/[email protected] | |
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 |