Skip to content

Merge pull request #27 from fac30/revert-23-homepage #38

Merge pull request #27 from fac30/revert-23-homepage

Merge pull request #27 from fac30/revert-23-homepage #38

Workflow file for this run

name: Workflow for continuous deployment to S3
on:
push:
branches:
- main
- DevOps
- feat/**
- outfit-component-responsivenss
- splash-page
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm i
- name: Build the project
run: npm run build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- name: Sync it to S3
run: |
aws s3 sync "./dist" s3://myclosetfrontend --exclude "*" --include "index.html" --include "assets/*"