Skip to content

Commit

Permalink
configuring workflow for front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaDudnyk committed Mar 1, 2024
1 parent 48a9dc6 commit 7554a64
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 195 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/frontEnd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploying to S3

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository//download the source code repository
uses: actions/checkout@v2

- name: Configure AWS credentials// AWS credentials are configuring
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: us-west-2

- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install dependencies and build
run: |
cd client
npm ci
npm run build
- name: Sync to S3
run: aws s3 sync client/build s3://videos-recomendation-project --delete
23 changes: 0 additions & 23 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ thumbs.db
*.swp
*.swo
*.sublime*
.vscode/
.env
.vscode
.env
170 changes: 0 additions & 170 deletions l.js

This file was deleted.

0 comments on commit 7554a64

Please sign in to comment.