We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d52f7a commit 0576a53Copy full SHA for 0576a53
1 file changed
.github/workflows/node.js.yml
@@ -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
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