Skip to content

Commit 8d7ae4b

Browse files
committed
Fixing Connection TimeOut - again...
1 parent fe02611 commit 8d7ae4b

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build and Deploy Docusaurus (Strict FTPS)
22

33
on:
4-
# Runs when a PR is merged into main (a merge commit is a push to main)
54
push:
65
branches: [ main ]
76

@@ -12,46 +11,33 @@ concurrency:
1211
jobs:
1312
build-and-deploy:
1413
runs-on: ubuntu-latest
15-
1614
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
15+
- uses: actions/checkout@v4
1916

20-
- name: Setup Node
21-
uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v4
2218
with:
2319
node-version: 20
24-
cache: 'npm'
20+
cache: npm
2521

2622
- name: Install & Build
2723
run: |
2824
npm ci
2925
npm run build
3026
31-
# ----- STRICT FTPS DEPLOY -----
32-
- name: Deploy via FTPS (strict)
27+
- name: Deploy via FTPS (explicit, strict)
3328
uses: SamKirkland/[email protected]
3429
with:
35-
server: ${{ secrets.FTP_HOST }}
30+
# IMPORTANT: Use a HOSTNAME here (FQDN), not an IP address
31+
server: ${{ secrets.FTP_HOST }} # e.g. dd26812.kasserver.com
3632
username: ${{ secrets.FTP_USER }}
3733
password: ${{ secrets.FTP_PASS }}
3834

39-
# Docusaurus output folder; MUST end with a trailing slash
40-
local-dir: ./build/
41-
42-
# Your web root/subdir on the server; put the trailing slash in the secret itself,
43-
# e.g. "/public_html/docs/" (must be writeable by your FTP user)
44-
server-dir: ${{ secrets.FTP_SERVER_DIR }}
45-
46-
# Explicit FTPS on port 21 (most hosts). For implicit FTPS use ftps-legacy + port 990.
47-
protocol: ftps
35+
protocol: ftps # explicit FTPS
4836
port: 21
37+
security: strict # keep strict
4938

50-
# Keep certificate checks strict (reject bad/unknown CAs)
51-
security: strict
39+
local-dir: ./build/ # must end with /
40+
server-dir: ${{ secrets.FTP_SERVER_DIR }} # ensure secret ends with /
5241

53-
# Make logs verbose while you're stabilizing this
5442
log-level: verbose
55-
56-
# FTP op timeout (ms). Adjust if your host is slow.
5743
timeout: 120000

0 commit comments

Comments
 (0)