Skip to content

Add SEO

Add SEO #65

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@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: npm install
run: |
npm install
echo "Dependencies installed successfully"
- name: npm run build
run: |
npm run build
echo "Build completed successfully"
- name: Deploy to cyberswap
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSH_KEY }}
source: "./build/*"
target: "/var/www/cyberswap/"
continue-on-error: true
- name: Set to production
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
mv /var/www/cyberswap/build/* /var/www/cyberswap/
rm -rf /var/www/cyberswap/build