David Zhao

upload docs

  1 +name: Android CI
  2 +
  3 +on:
  4 + push:
  5 + branches: [ main ]
  6 + # only publish on version tags
  7 + # tags:
  8 + # - v*
  9 +
  10 +jobs:
  11 + build:
  12 + runs-on: ubuntu-latest
  13 + defaults:
  14 + run:
  15 + working-directory: ./client-sdk-android
  16 + steps:
  17 + - name: checkout client-sdk-android
  18 + uses: actions/checkout@v2.3.4
  19 + with:
  20 + path: ./client-sdk-android
  21 +
  22 + - name: checkout protocol
  23 + uses: actions/checkout@v2.3.4
  24 + with:
  25 + repository: livekit/protocol
  26 + path: ./protocol
  27 +
  28 + - name: set up JDK 12
  29 + uses: actions/setup-java@v2
  30 + with:
  31 + java-version: '12'
  32 + distribution: 'adopt'
  33 +
  34 + - name: Grant execute permission for gradlew
  35 + run: chmod +x gradlew
  36 +
  37 + - name: Build docs
  38 + run: ./gradlew dokkaHtml
  39 +
  40 + - name: Upload to S3
  41 + uses: ItsKarma/aws-cli@v1.70.0
  42 + with:
  43 + args: s3 cp livekit-android-sdk/build/dokka/html/ s3://livekit-docs/client-sdk-android/ --recursive
  44 + env:
  45 + AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
  46 + AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
  47 + AWS_DEFAULT_REGION: "us-east-1"