Skip to content

Merge pull request #80 from play3step/feat/websocket-connect #137

Merge pull request #80 from play3step/feat/websocket-connect

Merge pull request #80 from play3step/feat/websocket-connect #137

Workflow file for this run

name: Frontend Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
env:
REACT_APP_SERVER_URL: ${{ secrets.REACT_APP_SERVER_URL }}
REACT_APP_WEBSOCKET_URL: ${{ secrets.REACT_APP_WEBSOCKET_URL }}
- name: Deploy to S3
run: |
aws s3 sync ./build s3://more-view
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_S3_KEY }}
AWS_EC2_METADATA_DISABLED: true