@@ -2,7 +2,8 @@ name: Build and Deploy Docusaurus (Strict FTPS)
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches :
6
+ - main
6
7
7
8
concurrency :
8
9
group : docusaurus-deploy
@@ -11,41 +12,6 @@ concurrency:
11
12
jobs :
12
13
build-and-deploy :
13
14
runs-on : ubuntu-latest
14
- steps :
15
- - uses : actions/checkout@v4
16
-
17
- - uses : actions/setup-node@v4
18
- with :
19
- node-version : 20
20
- cache : npm
21
-
22
- - name : Install & Build
23
- run : |
24
- npm ci
25
- npm run build
26
-
27
- - name : Deploy via FTPS (implicit, strict)
28
- uses :
SamKirkland/[email protected]
29
- with :
30
- server : ${{ secrets.FTP_HOST }} # HOSTNAME, not IP
31
- username : ${{ secrets.FTP_USER }}
32
- password : ${{ secrets.FTP_PASS }}
33
- protocol : ftps-legacy # implicit FTPS
34
- port : 990
35
- security : strictname: Build and Deploy Docusaurus (Strict FTPS)
36
-
37
- on :
38
- push :
39
- branches : [ main ]
40
-
41
- concurrency :
42
- group : docusaurus-deploy
43
- cancel-in-progress : true
44
-
45
- jobs :
46
- build-and-deploy :
47
- runs-on : ubuntu-latest
48
-
49
15
steps :
50
16
- name : Checkout code
51
17
uses : actions/checkout@v4
@@ -56,31 +22,21 @@ jobs:
56
22
node-version : 20
57
23
cache : npm
58
24
59
- - name : Install & Build
25
+ - name : Install and Build
60
26
run : |
61
27
npm ci
62
28
npm run build
63
29
64
30
- name : Deploy via FTPS (implicit, strict)
65
31
uses :
SamKirkland/[email protected]
66
32
with :
67
- server : ${{ secrets.FTP_HOST }} # 👈 hostname, not IP
33
+ server : ${{ secrets.FTP_HOST }}
68
34
username : ${{ secrets.FTP_USER }}
69
35
password : ${{ secrets.FTP_PASS }}
70
-
71
- protocol : ftps-legacy # 👈 implicit FTPS
36
+ protocol : ftps-legacy
72
37
port : 990
73
- security : strict # 👈 keep strict TLS
74
-
75
- local-dir : ./build/ # must end with /
76
- server-dir : ${{ secrets.FTP_SERVER_DIR }} # 👈 secret, must end with /
77
-
38
+ security : strict
39
+ local-dir : ./build/
40
+ server-dir : ${{ secrets.FTP_SERVER_DIR }}
78
41
log-level : verbose
79
42
timeout : 120000
80
-
81
-
82
- local-dir : ./build/
83
- server-dir : ${{ secrets.FTP_SERVER_DIR }}
84
-
85
- log-level : verbose
86
- timeout : 120000
0 commit comments