forked from livekit/client-sdk-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.19 KB
/
publish-docs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish Docs
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Download Archive
uses: dawidd6/action-download-artifact@v9
with:
workflow: ci.yaml
workflow_search: false
workflow_conclusion: success
branch: main
use_unzip: true
name: docs@${{ github.ref_name }}
# - name: Unzip Archive
# run: unzip docs@${{ github.ref_name }}.zip
- name: List
run: ls -al
# - name: S3 Upload
# run: aws s3 cp docs@${{ github.ref_name }}/ 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
# 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"