Publish Docs #4
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 | |
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 | |
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" |