-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (33 loc) · 957 Bytes
/
dev-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
on:
workflow_dispatch:
push:
branches:
- staging
name: Auto-Deploy Dev-Build / staging 🚀
jobs:
web-deploy:
name: Dev-Build Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Use Node.js 16.19.0
uses: actions/setup-node@v2
with:
node-version: '16.19.0'
- name: Installing packages
run: npm install --legacy-peer-deps
- name: Build Project
run: npm run build-preview
- name: Deploying to the server
uses: SamKirkland/FTP-Deploy-Action@4.3.3
with:
server: ${{ secrets.HOST }}
username: ${{ secrets.DEV_USER }}
password: ${{ secrets.DEV_PASSWORD }}
local-dir: ./build/
server-dir: ./2024/${{ secrets.DEV_FOLDER || 'unnamed_project' }}/
exclude: |
**/.git*
**/.git*/**
**/node_modules/**