Skip to content

Adjusted ZIP logic

Adjusted ZIP logic #10

Workflow file for this run

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
run: |
aws s3 sync dist s3://$AWS_S3_BUCKET/$S3_TARGET_FOLDER --delete --region $AWS_REGION
env:
AWS_S3_BUCKET: ${{ secrets.EVERSE_AWS_S3_BUCKET_NAME_GLTF_VIEWER }}
S3_TARGET_FOLDER: ${{ secrets.EVERSE_AWS_S3_TARGET_FOLDER_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'