-
Notifications
You must be signed in to change notification settings - Fork 110
36 lines (30 loc) · 1.05 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
name: Publish Docs
on:
workflow_dispatch:
push:
tags:
- "*"
jobs:
publish:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Build DocC
run: |
swift package --allow-writing-to-directory ./docs generate-documentation \
--target LiveKit \
--output-path ./docs \
--transform-for-static-hosting \
--hosting-base-path client-sdk-swift/
- name: S3 Upload
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
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"