Former-commit-id: a15d2e58d9d8b1ce25577f2482e282c446609276 Former-commit-id: ebfe59a4d26fb025d35cdc1aeb950681a1c21aa1 Former-commit-id: bbb06ef0ab554f44320ec0775ce93731c3563626 Former-commit-id: bf87aa7c70b632e52f3d20a10afcd1427858f94f [formerly 52146f15099694bff9a7211c538ce83dc185c599] Former-commit-id: 0e976f7b13d707a015b7c89a04c5dfbbd099d29c Former-commit-id: 82a4a0506d806af6dc2757ccf485aab9e5e5f3ee Former-commit-id: 2c3c94b0f7b1f87e48e1216b23ee91c7c3f717c6 Former-commit-id: 5d98af7658f3134a350681b0182b97753eaa4ddb Former-commit-id: 30309394129fb1dc2c28c4780881147254a81e3b
30 lines
693 B
YAML
30 lines
693 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:preview
|
|
- 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 |