Skip to content

Merge branch 'main' of https://github.com/casper-ecosystem/code-of-cr… #21

Merge branch 'main' of https://github.com/casper-ecosystem/code-of-cr…

Merge branch 'main' of https://github.com/casper-ecosystem/code-of-cr… #21

Workflow file for this run

name: Deploy to AWS S3
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Sync directory to S3
run: aws s3 sync ./build s3://${{ secrets.AWS_S3_BUCKET }} --delete