Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pipeline #3

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/serverless-front.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy branch Front End

on:
push:
branches: [main]
workflow_dispatch:
pull_request:
branches:
- "*"

jobs:
build-test-frontend:
name: Build And Test Front-End
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: |
./yarn.lock

- name: Install
run: yarn install

- name: Build Front
run: yarn build

deploy-front-serverless:
name: Deploy Frontend to Develop AWS
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: build-test-frontend
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: |
./yarn.lock

- run: yarn install

- name: Build Front
run: yarn build

- name: install SLS
run: npm install -g serverless@^3.38.0

- name: Configure SLS
run: sls config credentials --provider aws --key ${{ secrets.AWS_ACCESS_KEY_ID }} --secret ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Serverless Deploy
run: sls deploy --conceal --stage develop --region us-east-1 --config serverless.yml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ yarn-error.log*

# Local Netlify folder
.netlify
.vscode
.serverless
6 changes: 0 additions & 6 deletions .vscode/settings.json

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Deployment URL

URL: d3v374y2ma31o1.cloudfront.net

# Getting Started with Create React App

Before 'npm i' run 'npm config set legacy-peer-deps true'
Expand Down
Loading