-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (36 loc) · 1.02 KB
/
dev.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
name: dev
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: "14.17.0"
- name: Install npm dependencies
run: npm install
- name: Run build task
run: npm run build
- name: copy file via ssh key
uses: appleboy/scp-action@master
with:
source: "web-openlayers/*"
host: ${{ secrets.HOST }}
target: "/usr/src/zhoubichuan/dev/"
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}
- name: copy file via ssh key
uses: appleboy/scp-action@master
with:
source: "components/demo/*"
host: ${{ secrets.HOST }}
target: "/usr/src/zhoubichuan/dev/web-openlayers/"
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
password: ${{ secrets.PASSWORD }}