webapp
1name: Deploy to Cloud.ru2
3on:4push:5branches: ['main']6pull_request:7branches: ['main']8
9jobs:10build:11runs-on: ubuntu-latest12name: Build and Deploy13
14steps:15- uses: https://github.com/actions/checkout@v316
17- name: install node18uses: https://github.com/actions/setup-node@v319with:20node-version: 1621- run: npm i22- run: npm run build23
24- name: Publish25uses: https://github.com/nogsantos/scp-deploy@master26with:27src: ./build/*28host: ${{ secrets.SSH_HOST }}29remote: /var/www/html/30port: 2231user: ${{ secrets.SSH_USER }}32key: ${{ secrets.SSH_PRIVATE }}33