-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 996 Bytes
/
deploy.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
37
38
39
40
41
42
43
44
45
46
name: Deploy
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/[email protected]
- name: Cache
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Build
run: |
yarn install --frozen-lockfile
yarn build
# - name: Upload Artifact
# uses: actions/upload-artifact@v2
# with:
# path: build
- name: List Build
run: |
ls dist
- name: FTP Deploy
uses: SamKirkland/[email protected]
with:
port: 21
server: ${{ secrets.FTP }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PW }}
local-dir: dist/
server-dir: albertsm.it/wwwroot/