generated from JX3BOX/jx3box-vue-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (30 loc) · 937 Bytes
/
preview.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
name: Preview Dev
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [v16.18.1]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install && Build
run: |
npm install
npm run preview
## TODO:下方修改1处
- name: GrayEnv
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST_NANJING2 }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
source: pvx/*
target: /www/wwwroot/jx3box/test