Skip to content

Commit c74b66c

Browse files
committed
Trying to fix Connection / TimeOut
1 parent e95506a commit c74b66c

File tree

1 file changed

+8
-52
lines changed

1 file changed

+8
-52
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Build and Deploy Docusaurus (Strict FTPS)
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
67

78
concurrency:
89
group: docusaurus-deploy
@@ -11,41 +12,6 @@ concurrency:
1112
jobs:
1213
build-and-deploy:
1314
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-
4915
steps:
5016
- name: Checkout code
5117
uses: actions/checkout@v4
@@ -56,31 +22,21 @@ jobs:
5622
node-version: 20
5723
cache: npm
5824

59-
- name: Install & Build
25+
- name: Install and Build
6026
run: |
6127
npm ci
6228
npm run build
6329
6430
- name: Deploy via FTPS (implicit, strict)
6531
uses: SamKirkland/[email protected]
6632
with:
67-
server: ${{ secrets.FTP_HOST }} # 👈 hostname, not IP
33+
server: ${{ secrets.FTP_HOST }}
6834
username: ${{ secrets.FTP_USER }}
6935
password: ${{ secrets.FTP_PASS }}
70-
71-
protocol: ftps-legacy # 👈 implicit FTPS
36+
protocol: ftps-legacy
7237
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 }}
7841
log-level: verbose
7942
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

Comments
 (0)