-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (29 loc) · 891 Bytes
/
deploy.yml
File metadata and controls
31 lines (29 loc) · 891 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
name: Deploy to dev
on:
push:
branches:
- master
jobs:
# build and deploy the app
deploy_app:
runs-on: ubuntu-latest
name: Build and deploy the app
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm run install:app
- name: ⚙️ Build app
run: npm run build:app
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: 📂 Upload fox-deck-app via SFTP
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
username: ${{ secrets.FTP_DEV_USERNAME }}
server: ${{ secrets.FTP_SERVER }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.FTP_PORT }}
local_path: './apps/fox-deck-app/dist/*'
remote_path: '/var/www/dev'
sftp_only: true