-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 918 Bytes
/
nodejs.yml
File metadata and controls
42 lines (37 loc) · 918 Bytes
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
name: Node CI
on:
push:
branches-ignore:
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
- name: List output files
run: ls build
- name: FTP-Deploy-Action
uses: SamKirkland/FTP-Deploy-Action@2.0.0
env:
FTP_SERVER: mi3-wss6.a2hosting.com
FTP_USERNAME: mi3-wss6\drogogan
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
METHOD: ftp
PORT: 21
LOCAL_DIR: build
REMOTE_DIR: "httpdocs/dnd"
ARGS: --delete --exclude-glob=*.pdf