-
-
Notifications
You must be signed in to change notification settings - Fork 30
44 lines (42 loc) · 1.04 KB
/
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
name: deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install
run: npm ci
- name: build
run: npm run build
- name: upload build
uses: actions/upload-artifact@v3
with:
name: build
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: download build
uses: actions/download-artifact@v3
with:
name: build
path: dist
- name: deploy upstream
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ${{ secrets.UPSTREAM_HOST_URL }}
localDir: dist
password: ${{ secrets.UPSTREAM_PASSWORD }}
remoteDir: htdocs/${{ secrets.APEX_DOMAIN_URI }}/${{ secrets.SUBDOMAIN_URI }}
user: ${{ secrets.UPSTREAM_USERNAME }}
options: "--delete"