-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 990 Bytes
/
deploy.web.yaml
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
name: deploy web-chat-x-vue libp2p web application
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "packages/web-chat-x-vue/**"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Install Node.js
uses: actions/[email protected]
with:
node-version: "18.18.1"
- uses: pnpm/[email protected]
name: Install pnpm
with:
version: 8.12.0
run_install: false
- name: Install npm dependencies
run: pnpm install
- name: Build
run: pnpm build:f
- name: Deploy to Server
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ vars.SSH_KEY }}
ARGS: "-rltgoDzvO --delete"
SOURCE: "packages/web-chat-x-vue/dist/"
REMOTE_HOST: "81.68.108.130"
REMOTE_USER: root
TARGET: "/home/web-chat-x/web-chat-x-vue"