Skip to content

Commit

Permalink
Add workflow for deploying front-end to awl as CI/CD automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Afsha10 committed Jan 30, 2024
1 parent 2214a6c commit c4c028b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 10 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/frontend-s3-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: S3Workflow

on:
push:
branches:
- level-300

defaults:
run:
working-directory: ./client

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v2

env:
NODE_ENV: production

- name: Install Dependencies
run: npm install

- name: create build
run: npm run build

- name: AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{secrets.ACCESS_KEY}}
aws-secret-access-key: ${{secrets.SECRET_ACCESS_KEY}}
aws-region: eu-west-1

- name: Deploy static site to S3 bucket
run: aws s3 sync ./public/ s3://video-storage-app
10 changes: 0 additions & 10 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit c4c028b

Please sign in to comment.