Skip to content

Add guide on making custom components with Web UI (#22) #34

Add guide on making custom components with Web UI (#22)

Add guide on making custom components with Web UI (#22) #34

Workflow file for this run

name: Deploy to production
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
# Permissions needed to interact with GitHub's OIDC Token endpoint
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
# Build the website
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
env:
THEOPLAYER_LICENSE: ${{ vars.THEOPLAYER_LICENSE }}
# Deploy to S3
# See https://github.com/aws-actions/configure-aws-credentials
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::108977503313:role/github-documentation
aws-region: eu-west-1
- name: Deploy to S3
run: |
aws s3 sync --delete ./build s3://www.theoplayer.com-docs/docs
- name: Invalidate CloudFront
run: |
aws cloudfront create-invalidation --distribution-id E1IOJWYC9REF7X --paths '/docs/*'