Skip to content

Fix bugs1: logo place, login/signup, testimonials #47

Fix bugs1: logo place, login/signup, testimonials

Fix bugs1: logo place, login/signup, testimonials #47

Workflow file for this run

name: React CI/CD on server
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '21.5.0'
- name: Install dependencies
run: |
npm install
echo "Dependencies installed successfully"
- name: Build
run: |
npm run build
echo "Build completed successfully"
- name: Install sshpass
run: |
sudo apt-get install -y sshpass
echo "sshpass installed successfully"
- name: Deploy to Server
run: |
sshpass -p ${{ secrets.SSH_PASSWORD }} scp -o StrictHostKeyChecking=no -r ./build/* root@${{ secrets.HOST }}:/var/www/cyberswap
echo "Deploy completed successfully"