Skip to content

Commit b3a7da1

Browse files
committed
Add more check for release and stop is quarto-preview.js is missing
1 parent 7001b78 commit b3a7da1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,16 @@ jobs:
321321
- run: |
322322
tar -zxf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz
323323
echo "$GITHUB_WORKSPACE/quarto-${{needs.configure.outputs.version}}/bin" >> $GITHUB_PATH
324+
325+
# Check for share/preview/quarto-preview.js
326+
- name: Ensure share/preview/quarto-preview.js exists
327+
shell: bash
328+
run: |
329+
if [ ! -f "share/preview/quarto-preview.js" ]; then
330+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
331+
exit 1
332+
fi
333+
324334
- run: |
325335
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
326336
ls -lR
@@ -431,7 +441,24 @@ jobs:
431441
path: .
432442
- run: |
433443
tar -xf quarto-${{needs.configure.outputs.version}}-win.zip
444+
445+
# Check for share/preview/quarto-preview.js
446+
- name: Ensure share/preview/quarto-preview.js exists
447+
shell: bash
448+
run: |
449+
if [ ! -f "share/preview/quarto-preview.js" ]; then
450+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
451+
exit 1
452+
fi
453+
434454
- run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
455+
456+
- run: |
457+
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
458+
ls -lR
459+
echo $PATH
460+
shell: bash
461+
435462
- run: |
436463
quarto check
437464
quarto --paths
@@ -525,6 +552,16 @@ jobs:
525552
- run: |
526553
tar -zxf quarto-${{needs.configure.outputs.version}}-macos.tar.gz
527554
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
555+
556+
# Check for share/preview/quarto-preview.js
557+
- name: Ensure share/preview/quarto-preview.js exists
558+
shell: bash
559+
run: |
560+
if [ ! -f "share/preview/quarto-preview.js" ]; then
561+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
562+
exit 1
563+
fi
564+
528565
- run: tar -tzvf quarto-${{needs.configure.outputs.version}}-macos.tar.gz | head
529566
- run: ls -lR
530567
- run: echo $PATH

0 commit comments

Comments
 (0)