-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
6340d15
commit 9d199c4
Showing
1 changed file
with
42 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,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 }} |