webapp
Форк от omaltsev/webapp
1name: Deploy to Cloud.ru
2
3on:
4push:
5branches: ['main']
6pull_request:
7branches: ['main']
8
9jobs:
10build:
11runs-on: ubuntu-latest
12name: Build and Deploy
13
14steps:
15- uses: https://github.com/actions/checkout@v3
16
17- name: install node
18uses: https://github.com/actions/setup-node@v3
19with:
20node-version: 16
21- run: npm i
22- run: npm run build
23
24- name: Publish
25uses: https://github.com/nogsantos/scp-deploy@master
26with:
27src: ./build/*
28host: ${{ secrets.SSH_HOST }}
29remote: /var/www/html/
30port: 22
31user: ${{ secrets.SSH_USER }}
32key: ${{ secrets.SSH_PRIVATE }}
33