-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.11 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# https://github.com/actions/deploy-pages#usage
name: deploy_to_ukraina_com_ua
on:
workflow_dispatch:
repository_dispatch:
types:
- deploy_to_ukraina_com_ua
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy with rsync
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -avzr --delete
path: .
remote_host: ${{ secrets.REMOTE_HOST }}
remote_user: ${{ secrets.REMOTE_USER }}
remote_key: ${{ secrets.REMOTE_KEY }}
remote_path: ${{ secrets.REMOTE_PATH }}
- name: Deploy
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_KEY }}
port: ${{ secrets.PORT }}
script: |
cd /home/cyclone/fireon.com.ua/www/
rm -rf node_modules package-lock.json
ls
nvm use 18
nvm install-latest-npm
npm install
npx nuxt build