Skip to content

Commit fe02611

Browse files
committed
Trying to fix Connection TimeOut - again
1 parent d5b7d7c commit fe02611

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,57 @@
1-
# FINAL VERSION: .github/workflows/deploy.yml
2-
3-
name: Build and Deploy Docusaurus Site
1+
name: Build and Deploy Docusaurus (Strict FTPS)
42

53
on:
4+
# Runs when a PR is merged into main (a merge commit is a push to main)
65
push:
7-
branches:
8-
- main
6+
branches: [ main ]
7+
8+
concurrency:
9+
group: docusaurus-deploy
10+
cancel-in-progress: true
911

1012
jobs:
1113
build-and-deploy:
1214
runs-on: ubuntu-latest
15+
1316
steps:
14-
- name: Checkout Code
17+
- name: Checkout
1518
uses: actions/checkout@v4
1619

17-
- name: Set up Node.js
20+
- name: Setup Node
1821
uses: actions/setup-node@v4
1922
with:
20-
node-version: '18'
23+
node-version: 20
2124
cache: 'npm'
2225

23-
- name: Install and Build
26+
- name: Install & Build
2427
run: |
25-
npm install
28+
npm ci
2629
npm run build
2730
28-
- name: Deploy via FTPS
29-
uses: SamKirkland/[email protected]
31+
# ----- STRICT FTPS DEPLOY -----
32+
- name: Deploy via FTPS (strict)
33+
uses: SamKirkland/[email protected]
3034
with:
3135
server: ${{ secrets.FTP_HOST }}
3236
username: ${{ secrets.FTP_USER }}
3337
password: ${{ secrets.FTP_PASS }}
38+
39+
# Docusaurus output folder; MUST end with a trailing slash
3440
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)
3544
server-dir: ${{ secrets.FTP_SERVER_DIR }}
45+
46+
# Explicit FTPS on port 21 (most hosts). For implicit FTPS use ftps-legacy + port 990.
3647
protocol: ftps
3748
port: 21
49+
50+
# Keep certificate checks strict (reject bad/unknown CAs)
3851
security: strict
39-
timeout: 300000 # <-- ADD THIS LINE: Increase timeout to 90 seconds
52+
53+
# Make logs verbose while you're stabilizing this
54+
log-level: verbose
55+
56+
# FTP op timeout (ms). Adjust if your host is slow.
57+
timeout: 120000

0 commit comments

Comments
 (0)