-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 896 Bytes
/
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:
push:
branches:
- main
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: '20'
- name: 🔨 Build Frontend
run: |
cd client
npm install
npm run build
- name: 🔨 Build Backend
run: |
cd server
npm install
npm run build
- name: 📂 Sync files
uses: AkekoChan/flami-app@v1
with:
server: ${{ secrets.GIT_CPANEL_SERVER }}
username: ${{ secrets.GIT_CPANEL_USER }}
password: ${{ secrets.GIT_CPANEL_PWD }}
protocol: ${{ secrets.GIT_CPANEL_PROTOCOL }}
local-dir: ./build/