Skip to content

Commit

Permalink
added github actions for client
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit_growpital committed Aug 15, 2023
1 parent 5c74899 commit b7ee7c8
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Client Pipeline
on:
push:
branches:
- main
paths:
- 'client/**' # Trigger only when code is pushed inside the 'client' folder

jobs:
build:
runs-on: ubuntu-latest

env:
REACT_APP_BASE_URI : ${{ vars.REACT_APP_BASE_URI }}

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

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

- name: Install dependencies
run: cd client && npm install

- name: Build client
run: cd client && npm run Build

- name: Deploy client
uses: cd client && npm run deploy
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./client/build
Loading

0 comments on commit b7ee7c8

Please sign in to comment.