-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sumit_growpital
committed
Aug 15, 2023
1 parent
5c74899
commit b7ee7c8
Showing
3 changed files
with
321 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.