Skip to content

2.10.1

2.10.1 #736

Workflow file for this run

name: Publish Docs
on:
workflow_dispatch:
inputs:
dry_run:
description: Dry run (only list files, don't upload)
default: true
type: boolean
release:
types: [published]
jobs:
publish:
name: Publish Docs
runs-on: ubuntu-latest
steps:
- name: Download Archive
uses: dawidd6/action-download-artifact@v9
with:
workflow: ci.yaml
workflow_search: false
branch: main
name: docs
- name: Unzip Archive
run: unzip docs.zip
- name: List Files
run: ls -la docs
- name: S3 Upload
if: inputs.dry_run != true
run: aws s3 cp docs/ s3://livekit-docs/client-sdk-swift --recursive
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"
- name: Invalidate cache
if: inputs.dry_run != true
run: aws cloudfront create-invalidation --distribution-id EJJ40KLJ3TRY9 --paths "/*"
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"