Fixed module not being imported #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy to S3 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install | |
- name: Build the application | |
run: npm run build | |
- name: List directory structure | |
run: ls -alR | |
- name: Deploy to S3 | |
uses: jakejarvis/s3-sync-action@v0.5.1 | |
with: | |
args: --delete | |
env: | |
AWS_S3_BUCKET: ${{ secrets.EVERSE_AWS_S3_BUCKET_NAME_GLTF_VIEWER }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.EVERSE_AWS_S3_BUCKET_SECRET_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.EVERSE_AWS_S3_BUCKET_SECRET_KEY_SECRET }} | |
AWS_REGION: 'us-east-1' # or your AWS region | |
SOURCE_DIR: 'dist' # or the directory where your build artifacts are located |