-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.06 KB
/
build_dev.yml
File metadata and controls
49 lines (40 loc) · 1.06 KB
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
41
42
43
44
45
46
47
48
49
name: Build develop branch
on:
push:
branches:
- develop
pull_request:
branches:
- develop
env:
VITE_COMMIT_HASH: ${{ github.sha }}
jobs:
build:
name: Build vue
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mymindstorm/setup-emsdk@v11
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install dependencies
run: yarn
- name: build project
run: yarn dev_build
- name: Deploy to the DEV server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }}
ARGS: '-avz'
SOURCE: 'dist/'
REMOTE_HOST: ${{ secrets.SERVER_IP }}
REMOTE_USER: ${{ secrets.SERVER_USER }}
TARGET: ${{ secrets.SERVER_DEV_PATH }}
- name: Upload dist
uses: actions/upload-artifact@v2
with:
name: dev_dist
path: ./dist
if-no-files-found: error