deploy-test

This commit is contained in:
FairyEver 2019-12-15 00:00:40 +08:00
parent 5baf6f68a4
commit 831a3fe1ab
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: Deploy Test
name: Deploy https://d2.pub
on:
push:
@ -6,7 +6,8 @@ on:
- master
env:
REPO:
LOCAL_DIR: dist
REMOTE_DIR: /www/d2-admin/preview
jobs:
build:
@ -28,6 +29,6 @@ jobs:
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
METHOD: sftp
PORT: ${{ secrets.FTP_PORT }}
LOCAL_DIR: dist
REMOTE_DIR: /www/${GITHUB_REPOSITORY//*\//}/preview
LOCAL_DIR: ${{ LOCAL_DIR }}
REMOTE_DIR: ${{ REMOTE_DIR }}
ARGS: --delete --verbose --parallel=100