Skip to content

Commit f8353e4

Browse files
authored
Merge pull request #156 from OpenSIN-AI/fix/cloudflare-guide-routes-artifact
fix(ci): deploy plain docs artifact to Cloudflare
2 parents 8faed59 + d5cc2b2 commit f8353e4

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,18 @@ jobs:
171171
# STEP 9: Upload build artifacts for deploy job
172172
# Artifacts are needed because build and deploy are separate jobs
173173
# -----------------------------------------------------------------------
174+
- name: Verify guide routes exist in build output
175+
if: github.ref == 'refs/heads/main'
176+
run: |
177+
test -f docs/.vitepress/dist/guide/getting-started.html
178+
test -f docs/.vitepress/dist/guide/changelog.html
179+
echo "PASS: Guide routes are present in the built output"
180+
174181
- name: Upload build artifacts
175182
if: github.ref == 'refs/heads/main'
176-
uses: actions/upload-pages-artifact@v3
183+
uses: actions/upload-artifact@v4
177184
with:
185+
name: docs-site-dist
178186
path: docs/.vitepress/dist
179187

180188
# ---------------------------------------------------------------------------
@@ -201,7 +209,7 @@ jobs:
201209
- name: Download built artifacts
202210
uses: actions/download-artifact@v4
203211
with:
204-
name: github-pages
212+
name: docs-site-dist
205213
path: docs/.vitepress/dist
206214

207215
# -----------------------------------------------------------------------

0 commit comments

Comments
 (0)