Former-commit-id: 059f998b3f3d20a531fc93f4c302e5dd44890ed6 Former-commit-id: 7265fda9359ea381173a4d7c443165d8113ae082 Former-commit-id: ea3839a7aed544b6c2d44445fe1223b6eb61cac6 Former-commit-id: 61eb2a57b21e0a8d32bd80a86342a976349733c8 [formerly b2c14d2c9df1c5ac582079cbae0181732c0288e9] Former-commit-id: 2b66b5f94ce3576f4f1f6bc90264f2471a894f36 Former-commit-id: a3abc2e3ee4e8069e4c2f37b54f5dacb642d9693 Former-commit-id: ffa1733578ef304864d7b265848d4d6bea8b18c5 Former-commit-id: 139246f86d095943e06a204b77c92683cbf33842 Former-commit-id: 16b0b196f83201844148d1054094e8672176b9ba
30 lines
692 B
YAML
30 lines
692 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '10.x'
|
|
- name: Build
|
|
run: |
|
|
npm install
|
|
npm run build:github
|
|
- name: Deploy
|
|
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
|
env:
|
|
FTP_SERVER: ${{ secrets.FTP_SERVER }}
|
|
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
|
|
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
|
|
METHOD: sftp
|
|
PORT: ${{ secrets.FTP_PORT }}
|
|
LOCAL_DIR: dist
|
|
REMOTE_DIR: /www/d2-admin/preview
|
|
ARGS: --delete --verbose --parallel=100 |