fixing the build
Some checks failed
Build frontend / build (push) Failing after 50s

This commit is contained in:
mouazkh
2026-06-16 18:58:48 +03:00
parent c5d9ad7b70
commit eaa4206b0b

View File

@ -1,40 +1,40 @@
# name: Build frontend name: Build frontend
# on: on:
# push: push:
# branches: branches:
# - main - main
# jobs: jobs:
# build: build:
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Clone repository - name: Clone repository
# uses: actions/checkout@v2 uses: actions/checkout@v2
# with: with:
# repository: Rahaf/SweetHome repository: Rahaf/SweetHome
# github-server-url: http://45.93.137.91:3000 github-server-url: http://45.93.137.91:3000
# - name: Stopping server - name: Stopping server
# run: sudo systemctl stop sweetHome run: sudo systemctl stop sweetHome
# - name: Copy repository to output file - name: Copy repository to output file
# run: | run: |
# sudo cp -r $GITHUB_WORKSPACE/* /opt/sweetHome/ sudo cp -r $GITHUB_WORKSPACE/* /opt/sweetHome/
# sudo chown -R $(whoami) /opt/sweetHome sudo chown -R $(whoami) /opt/sweetHome
# - name: Setup Node.js 22.x - name: Setup Node.js 22.x
# uses: actions/setup-node@v1 uses: actions/setup-node@v1
# with: with:
# node-version: 22.x node-version: 22.x
# - name: Install dependencies - name: Install dependencies
# working-directory: /opt/sweetHome working-directory: /opt/sweetHome
# run: npm install run: npm install
# - name: Build next project - name: Build next project
# working-directory: /opt/sweetHome working-directory: /opt/sweetHome
# run: npm run build run: npm run build
# - name: Starting the server - name: Starting the server
# run: | run: |
# sudo systemctl daemon-reload sudo systemctl daemon-reload
# sudo systemctl start sweetHome sudo systemctl start sweetHome