Skip to content

Commit 17fb350

Browse files
committed
DevOps: updated with CI/CD with hosted panel
1 parent b8b5b4c commit 17fb350

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to cPanel
2+
on:
3+
push:
4+
branches: [master]
5+
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: "18"
16+
17+
- name: Install Dependencies
18+
run: npm install
19+
20+
- name: Build
21+
run: npm run build
22+
23+
- name: Deploy to cPanel
24+
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
25+
with:
26+
server: ${{ secrets.FTP_SERVER }}
27+
username: ${{ secrets.FTP_USERNAME }}
28+
password: ${{ secrets.FTP_PASSWORD }}
29+
local-dir: ./dist/
30+
server-dir: /wedio.intellwe.com/

0 commit comments

Comments
 (0)