Skip to content

Merge pull request #22 from LeadingEDJE/connect-to-s3 #5

Merge pull request #22 from LeadingEDJE/connect-to-s3

Merge pull request #22 from LeadingEDJE/connect-to-s3 #5

Workflow file for this run

name: deploy
on:
push:
branches:
- 'main'
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:headless
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${AWS_ROLE}
aws-region: us-east-2
- name: Copy files to the test website with the AWS CLI
run: |
aws s3 sync . s3://${S3_BUCKET}