From cc16f559f4f2a99156687f1b43fb0ab5cbcf2df2 Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Wed, 6 Mar 2024 00:54:33 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Added=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 39 ++++++++++++++++++++++++++++++++ Frontend/public/index.html | 43 ++++++++++++++++++++++++------------ 2 files changed, 68 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..097d292 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +name: Insight-Ink CI/CD + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: | + cd Frontend + npm install + + - name: Build React app + run: | + cd Frontend + npm run build + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install Python dependencies + run: | + cd Backend + pip install -r requirements.txt \ No newline at end of file diff --git a/Frontend/public/index.html b/Frontend/public/index.html index 5ea5003..c8382a6 100644 --- a/Frontend/public/index.html +++ b/Frontend/public/index.html @@ -1,24 +1,39 @@ - - - - + + + + - - - - - + + + + + - - - - + + + + - +