Skip to content

Commit 64c1659

Browse files
committed
modify pdf default path
1 parent 504a719 commit 64c1659

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/merge-build-push.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,13 @@ jobs:
207207
exit 1
208208
fi
209209
210-
SOURCE_PDF_EN="build/assembler-pdf/${COMPONENT_NAME}/${MERGED_BRANCH}/_exports/index.pdf"
210+
SOURCE_PDF_EN="build/assembler/pdf/${COMPONENT_NAME}/${MERGED_BRANCH}/_exports/index.pdf"
211211
DEST_EN="../www_publish_target/docs/en/${COMPONENT_NAME}/${MERGED_BRANCH}/ivorysql.pdf"
212212
213+
echo "--- Debug: PDF output directory structure ---"
214+
find build/ -name "*.pdf" 2>/dev/null || echo "No PDF files found under build/"
215+
echo "--- End debug ---"
216+
213217
if [[ ! -f "${SOURCE_PDF_EN}" ]]; then
214218
echo "::error::English PDF not found at ${SOURCE_PDF_EN}"
215219
exit 1
@@ -240,9 +244,13 @@ jobs:
240244
exit 1
241245
fi
242246
243-
SOURCE_PDF="build/assembler-pdf/${COMPONENT_NAME}/${MERGED_BRANCH}/_exports/index.pdf"
247+
SOURCE_PDF="build/assembler/pdf/${COMPONENT_NAME}/${MERGED_BRANCH}/_exports/index.pdf"
244248
DEST_CN="../www_publish_target/docs/cn/${COMPONENT_NAME}/${MERGED_BRANCH}/ivorysql.pdf"
245249
250+
echo "--- Debug: PDF output directory structure ---"
251+
find build/ -name "*.pdf" 2>/dev/null || echo "No PDF files found under build/"
252+
echo "--- End debug ---"
253+
246254
if [[ ! -f "${SOURCE_PDF}" ]]; then
247255
echo "::error::PDF not found at ${SOURCE_PDF}"
248256
exit 1

.github/workflows/pr-preview.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,14 @@ jobs:
123123
echo "Building Chinese site..."
124124
#mkdir -p ../www_publish_target/docs/cn
125125
npx antora generate --stacktrace --to-dir ../www_publish_target/docs/cn antora-playbook-CN.yml
126-
126+
127+
- name: Debug PDF output paths
128+
working-directory: ./ivory-doc-builder
129+
run: |
130+
echo "--- Debug: PDF output directory structure ---"
131+
find build/ -name "*.pdf" 2>/dev/null || echo "No PDF files found under build/"
132+
echo "--- End debug ---"
133+
127134
- name: Deploy to Netlify
128135
id: netlify_deploy
129136
uses: nwtgck/actions-netlify@v3.0

0 commit comments

Comments
 (0)