Skip to content

Commit 812f37a

Browse files
committed
fix: correct documentation deployment extraction path
Fix deployment workflow to properly extract docs archive: - Archive contains content at root level, not in dist/ subdirectory - Create deployment_temp directory for proper extraction - Update FTP deployment path to use extracted content location
1 parent abdfb6a commit 812f37a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,18 @@ jobs:
4747
4848
# Extract deployment bundle for FTP upload
4949
echo "📂 Extracting deployment bundle..."
50-
cd bazel-bin/docs-site
51-
tar -xzf docs_deployment.tar.gz
50+
mkdir -p deployment_temp
51+
cd deployment_temp
52+
tar -xzf ../bazel-bin/docs-site/docs_deployment.tar.gz
5253
5354
# Verify deployment content
5455
echo "✅ Verifying deployment content..."
55-
ls -la dist/
56+
ls -la .
5657
echo "📄 Documentation site preview:"
57-
head -5 dist/index.html | grep -E "(title|h1)" || echo "Basic HTML structure verified"
58+
head -5 index.html | grep -E "(title|h1)" || echo "Basic HTML structure verified"
5859
5960
# Check file size (should be reasonable)
60-
SIZE=$(wc -c < dist/index.html)
61+
SIZE=$(wc -c < index.html)
6162
echo "📊 Site size: ${SIZE} bytes"
6263
if [ $SIZE -lt 1000 ]; then
6364
echo "❌ Warning: Site seems too small"
@@ -77,7 +78,7 @@ jobs:
7778
server: ${{ env.NETCUP_URI }}
7879
username: ${{ env.NETCUP_USER }}
7980
password: ${{ env.NETCUP_PASSWORD }}
80-
local-dir: ./bazel-bin/docs-site/dist/
81+
local-dir: ./deployment_temp/
8182
server-dir: /
8283
exclude: |
8384
**/.git*

0 commit comments

Comments
 (0)