Skip to content

feat: provider-agnostic telephony integration with Plivo & Exotel #9

feat: provider-agnostic telephony integration with Plivo & Exotel

feat: provider-agnostic telephony integration with Plivo & Exotel #9

Workflow file for this run

name: Deploy Docs to S3
on:
push:
branches:
- main # Change to the branch you want to deploy from
paths:
- 'EfficientAI-Docs/**'
- '.github/workflows/deploy-docs.yml'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'EfficientAI-Docs/package-lock.json'
- name: Install dependencies & Build
run: |
cd EfficientAI-Docs
npm install
npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Deploy to S3
run: |
aws s3 sync ./EfficientAI-Docs/build s3://${{ secrets.AWS_S3_BUCKET }} --delete
- name: Invalidating CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"