-
Notifications
You must be signed in to change notification settings - Fork 87
34 lines (31 loc) · 996 Bytes
/
deploy.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
name: Deploy Widget to S3
on:
push:
branches:
- main
jobs:
build:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::403372804574:role/github-actions
role-session-name: github-actions-role-session
aws-region: us-east-2
- name: Amazon ECR login
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Build React App
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: yarn build
- name: Deploy app build to S3 bucket
run: |
aws s3 sync ./packages/widget-playground-vite/dist/ s3://playground.li.fi --delete
aws s3 sync ./packages/widget-embedded/dist/ s3://widget.li.fi --delete