Skip to content

Merge pull request #3 from LifeWatcher123/LifeWatcher123-build-action… #2

Merge pull request #3 from LifeWatcher123/LifeWatcher123-build-action…

Merge pull request #3 from LifeWatcher123/LifeWatcher123-build-action… #2

Workflow file for this run

name: Frontend Build
on:
push:
branches:
- main # Adjust this branch name to your needs
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14 # Adjust the Node.js version as needed
- name: Install Dependencies
working-directory: src-frontend-react
run: npm install
- name: Build Frontend
working-directory: src-frontend-react
run: npm run build
- name: Move Build Files
run: mv src-frontend-react/build ./frontend-build
- name: Commit and Push Build Files
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add frontend-build
git commit -m "Add frontend build files"
git push