Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Udeesha-Prabhashana committed Jan 28, 2024
1 parent 6340d15 commit 9d199c4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/frontend_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build React App

on:
push:
branches: [ production ]
# pull_request:
# branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install pnpm
run: npm install -g pnpm

- name: Install frontend dependencies with pnpm

run: |
cd Frontend
pnpm install
- name: Build frontend with pnpm
# env:
# REACT_APP_BACKEND_URL: https://whale-app-h5o2s.ondigitalocean.app
run: |
cd Frontend
pnpm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: Frontend/build
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9d199c4

Please sign in to comment.