Skip to content

Commit

Permalink
trying to deploy front
Browse files Browse the repository at this point in the history
  • Loading branch information
sethupavan12 committed Jul 25, 2024
1 parent f9d9acb commit 5c72a5c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Frontend
name: Deploy React App

on:
push:
Expand All @@ -10,21 +10,24 @@ jobs:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install
working-directory: ./turing-arena-frontend

- name: Build
run: npm run build
- name: Build the project
run: npm run build
working-directory: ./turing-arena-frontend

- name: Deploy to GitHub Pages
run: npm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to GitHub Pages
run: npm run deploy
working-directory: ./turing-arena-frontend
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions turing-arena-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"gh-pages": "^3.2.3"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
Expand Down

0 comments on commit 5c72a5c

Please sign in to comment.