Skip to content

Commit 0576a53

Browse files
authored
Change Node.js CI to Build & Deploy to Plesk
Updated workflow to build and deploy to Plesk instead of just CI.
1 parent 1d52f7a commit 0576a53

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build & Deploy to Plesk
2+
on:
3+
push:
4+
branches: [ master ]
5+
6+
jobs:
7+
build-deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '20.x'
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Deploy to Plesk
26+
uses: celleb/plesk-deployer@v1.1
27+
with:
28+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
29+
ftp-username: ${{ secrets.FTP_USERNAME }}
30+
ftp-server: ${{ secrets.FTP_SERVER }}
31+
files-to-copy: "./dist"
32+
remote-dir: "./httpdocs"
33+
node-version: 20
34+
npm-install: false
35+
restart: false
36+
clean-remote-dir: true
37+

0 commit comments

Comments
 (0)