refactor: replace current()
function with current
property in Occupancy
and Typing
APIs
#451
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: API Reference | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
jobs: | |
build: | |
if: github.actor != 'dependabot[bot]' || github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
permissions: | |
deployments: write | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build Documentation | |
run: ./gradlew dokkaHtml | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: eu-west-2 | |
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-ably-chat-kotlin | |
role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | |
- name: Upload Documentation | |
uses: ably/sdk-upload-action@v2 | |
with: | |
sourcePath: chat/build/dokka/html | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
artifactName: dokka |