-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.46 KB
/
Copy pathupload.yml
File metadata and controls
59 lines (48 loc) · 1.46 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
50
51
52
53
54
55
56
57
name: sinamon-Project-exhibition
on:
workflow_dispatch:
# push:
# branches:
# - master
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- name: Checkout source code.
uses: actions/checkout@master
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install Dependencies
run: yarn
# - name: Cache node modules
# uses: actions/cache@v1
# with:
# path: node_modules
# key: ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }}
# restore-keys: |
# ${{ runner.OS }}-build-
# ${{ runner.OS }}-
# - name: Install Dependencies
# run: npm install
- name: Deploy
uses: SamKirkland/FTP-Deploy-Action@3.1.1
with:
ftp-server: ${{ secrets.FTP_HOST_PRODUCTION }}
ftp-username: ${{ secrets.FTP_USERNAME_PRODUCTION }}
ftp-password: ${{ secrets.FTP_PASSWORD_PRODUCTION }}
local-dir: ./
git-ftp-args: --insecure
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
# - name: pm2
# run: pm2 restart server
# - name: nginx
# run: sudo systemctl restart nginx