-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 929 Bytes
/
Copy pathmain.yml
File metadata and controls
38 lines (34 loc) · 929 Bytes
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
name: Deploy
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: install Node.js
uses: actions/[email protected]
with:
node-version: "18.x"
- name: install pnpm
uses: pnpm/[email protected]
with:
version: "8.12.1"
- name: install deps
run: pnpm i
- name: clear previous build
run: pnpm run clear
- name: build app
run: pnpm run build
- name: rename dist
run: mv build appleshell
- name: copy files to server
uses: appleboy/scp-action@master
with:
host: ${{secrets.REMOTE_HOST}}
username: ${{secrets.REMOTE_USER}}
password: ${{secrets.REMOTE_PASSWORD}}
port: 22
source: "appleshell/"
target: ${{secrets.REMOTE_TARGET}}