Remove Promises dependency for internal completers (#267) #603
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 Docs | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ "main" ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
publish: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Generate Documentation | |
uses: SwiftDocOrg/swift-doc@master | |
with: | |
inputs: "Sources" | |
module-name: LiveKit Swift Client SDK | |
output: "Documentation" | |
format: html | |
base-url: /client-sdk-swift | |
- name: Get Actions user id | |
id: get_uid | |
run: | | |
actions_user_id=`id -u $USER` | |
echo $actions_user_id | |
echo ::set-output name=uid::$actions_user_id | |
- name: Correct Ownership in GITHUB_WORKSPACE directory | |
uses: peter-murray/reset-workspace-ownership-action@v1 | |
with: | |
user_id: ${{ steps.get_uid.outputs.uid }} | |
- name: S3 Upload | |
run: aws s3 sync Documentation/ s3://livekit-docs/client-sdk-swift/ | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }} | |
AWS_DEFAULT_REGION: "us-east-1" |