3737 fetch-depth : 0
3838
3939 - name : Prevent Re-run
40+ if : ${{ inputs.publish-release }}
4041 uses : ./.github/workflows/actions/prevent-rerun
4142
4243 # we _also_ need npm, specifically for webui/preview
@@ -104,6 +105,7 @@ jobs:
104105 ref : ${{ needs.configure.outputs.version_commit }}
105106
106107 - name : Prevent Re-run
108+ if : ${{ inputs.publish-release }}
107109 uses : ./.github/workflows/actions/prevent-rerun
108110
109111 - name : Make Tarball
@@ -125,6 +127,7 @@ jobs:
125127 ref : ${{ needs.configure.outputs.version_commit }}
126128
127129 - name : Prevent Re-run
130+ if : ${{ inputs.publish-release }}
128131 uses : ./.github/workflows/actions/prevent-rerun
129132
130133 - name : Configure
@@ -161,6 +164,7 @@ jobs:
161164 ref : ${{ needs.configure.outputs.version_commit }}
162165
163166 - name : Prevent Re-run
167+ if : ${{ inputs.publish-release }}
164168 uses : ./.github/workflows/actions/prevent-rerun
165169
166170 - name : Configure
@@ -197,6 +201,7 @@ jobs:
197201 ref : ${{ needs.configure.outputs.version_commit }}
198202
199203 - name : Prevent Re-run
204+ if : ${{ inputs.publish-release }}
200205 uses : ./.github/workflows/actions/prevent-rerun
201206
202207 - name : Configure
@@ -244,6 +249,7 @@ jobs:
244249 ref : ${{ needs.configure.outputs.version_commit }}
245250
246251 - name : Prevent Re-run
252+ if : ${{ inputs.publish-release }}
247253 uses : ./.github/workflows/actions/prevent-rerun
248254
249255 - name : Configure
@@ -277,6 +283,7 @@ jobs:
277283 ref : ${{ needs.configure.outputs.version_commit }}
278284
279285 - name : Prevent Re-run
286+ if : ${{ inputs.publish-release }}
280287 uses : ./.github/workflows/actions/prevent-rerun
281288
282289 - name : Configure
@@ -312,6 +319,7 @@ jobs:
312319 .github
313320
314321 - name : Prevent Re-run
322+ if : ${{ inputs.publish-release }}
315323 uses : ./.github/workflows/actions/prevent-rerun
316324
317325 - uses : actions/download-artifact@v4
@@ -321,6 +329,16 @@ jobs:
321329 - run : |
322330 tar -zxf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz
323331 echo "$GITHUB_WORKSPACE/quarto-${{needs.configure.outputs.version}}/bin" >> $GITHUB_PATH
332+
333+ # Check for share/preview/quarto-preview.js
334+ - name : Ensure share/preview/quarto-preview.js exists
335+ shell : bash
336+ run : |
337+ if [ ! -f "share/preview/quarto-preview.js" ]; then
338+ echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
339+ exit 1
340+ fi
341+
324342 - run : |
325343 tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
326344 ls -lR
@@ -339,6 +357,7 @@ jobs:
339357 ref : ${{ needs.configure.outputs.version_commit }}
340358
341359 - name : Prevent Re-run
360+ if : ${{ inputs.publish-release }}
342361 uses : ./.github/workflows/actions/prevent-rerun
343362
344363 - name : Configure Rust Tools
@@ -423,6 +442,7 @@ jobs:
423442 .github
424443
425444 - name : Prevent Re-run
445+ if : ${{ inputs.publish-release }}
426446 uses : ./.github/workflows/actions/prevent-rerun
427447
428448 - uses : actions/download-artifact@v4
@@ -431,7 +451,24 @@ jobs:
431451 path : .
432452 - run : |
433453 tar -xf quarto-${{needs.configure.outputs.version}}-win.zip
454+
455+ # Check for share/preview/quarto-preview.js
456+ - name : Ensure share/preview/quarto-preview.js exists
457+ shell : bash
458+ run : |
459+ if [ ! -f "share/preview/quarto-preview.js" ]; then
460+ echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
461+ exit 1
462+ fi
463+
434464 - run : Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
465+
466+ - run : |
467+ tar -tzvf quarto-${{needs.configure.outputs.version}}-win.zip
468+ ls -lR
469+ echo $PATH
470+ shell: bash
471+
435472 - run : |
436473 quarto check
437474 quarto --paths
@@ -446,6 +483,7 @@ jobs:
446483 ref : ${{ needs.configure.outputs.version_commit }}
447484
448485 - name : Prevent Re-run
486+ if : ${{ inputs.publish-release }}
449487 uses : ./.github/workflows/actions/prevent-rerun
450488
451489 - name : Configure
@@ -516,6 +554,7 @@ jobs:
516554 .github
517555
518556 - name : Prevent Re-run
557+ if : ${{ inputs.publish-release }}
519558 uses : ./.github/workflows/actions/prevent-rerun
520559
521560 - uses : actions/download-artifact@v4
@@ -525,6 +564,16 @@ jobs:
525564 - run : |
526565 tar -zxf quarto-${{needs.configure.outputs.version}}-macos.tar.gz
527566 echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
567+
568+ # Check for share/preview/quarto-preview.js
569+ - name : Ensure share/preview/quarto-preview.js exists
570+ shell : bash
571+ run : |
572+ if [ ! -f "share/preview/quarto-preview.js" ]; then
573+ echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
574+ exit 1
575+ fi
576+
528577 - run : tar -tzvf quarto-${{needs.configure.outputs.version}}-macos.tar.gz | head
529578 - run : ls -lR
530579 - run : echo $PATH
@@ -561,7 +610,8 @@ jobs:
561610 .github
562611
563612 - name : Prevent Re-run
564- uses : ./quarto-cli/.github/workflows/actions/prevent-rerun
613+ if : ${{ inputs.publish-release }}
614+ uses : ./.github/workflows/actions/prevent-rerun
565615
566616 - name : Download Artifacts
567617 uses : actions/download-artifact@v4
@@ -666,6 +716,7 @@ jobs:
666716 - uses : actions/checkout@v4
667717
668718 - name : Prevent Re-run
719+ if : ${{ inputs.publish-release }}
669720 uses : ./.github/workflows/actions/prevent-rerun
670721
671722 - name : Revert commit of version.txt
@@ -696,6 +747,7 @@ jobs:
696747 .github
697748
698749 - name : Prevent Re-run
750+ if : ${{ inputs.publish-release }}
699751 uses : ./.github/workflows/actions/prevent-rerun
700752
701753 - name : Download Artifacts
0 commit comments