Fix bugs1: logo place, login/signup, testimonials #47
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
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" | |