37
37
fetch-depth : 0
38
38
39
39
- name : Prevent Re-run
40
+ if : ${{ inputs.publish-release }}
40
41
uses : ./.github/workflows/actions/prevent-rerun
41
42
42
43
# we _also_ need npm, specifically for webui/preview
@@ -104,6 +105,7 @@ jobs:
104
105
ref : ${{ needs.configure.outputs.version_commit }}
105
106
106
107
- name : Prevent Re-run
108
+ if : ${{ inputs.publish-release }}
107
109
uses : ./.github/workflows/actions/prevent-rerun
108
110
109
111
- name : Make Tarball
@@ -125,6 +127,7 @@ jobs:
125
127
ref : ${{ needs.configure.outputs.version_commit }}
126
128
127
129
- name : Prevent Re-run
130
+ if : ${{ inputs.publish-release }}
128
131
uses : ./.github/workflows/actions/prevent-rerun
129
132
130
133
- name : Configure
@@ -161,6 +164,7 @@ jobs:
161
164
ref : ${{ needs.configure.outputs.version_commit }}
162
165
163
166
- name : Prevent Re-run
167
+ if : ${{ inputs.publish-release }}
164
168
uses : ./.github/workflows/actions/prevent-rerun
165
169
166
170
- name : Configure
@@ -197,6 +201,7 @@ jobs:
197
201
ref : ${{ needs.configure.outputs.version_commit }}
198
202
199
203
- name : Prevent Re-run
204
+ if : ${{ inputs.publish-release }}
200
205
uses : ./.github/workflows/actions/prevent-rerun
201
206
202
207
- name : Configure
@@ -244,6 +249,7 @@ jobs:
244
249
ref : ${{ needs.configure.outputs.version_commit }}
245
250
246
251
- name : Prevent Re-run
252
+ if : ${{ inputs.publish-release }}
247
253
uses : ./.github/workflows/actions/prevent-rerun
248
254
249
255
- name : Configure
@@ -277,6 +283,7 @@ jobs:
277
283
ref : ${{ needs.configure.outputs.version_commit }}
278
284
279
285
- name : Prevent Re-run
286
+ if : ${{ inputs.publish-release }}
280
287
uses : ./.github/workflows/actions/prevent-rerun
281
288
282
289
- name : Configure
@@ -312,6 +319,7 @@ jobs:
312
319
.github
313
320
314
321
- name : Prevent Re-run
322
+ if : ${{ inputs.publish-release }}
315
323
uses : ./.github/workflows/actions/prevent-rerun
316
324
317
325
- uses : actions/download-artifact@v4
@@ -321,6 +329,16 @@ jobs:
321
329
- run : |
322
330
tar -zxf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz
323
331
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
+
324
342
- run : |
325
343
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
326
344
ls -lR
@@ -339,6 +357,7 @@ jobs:
339
357
ref : ${{ needs.configure.outputs.version_commit }}
340
358
341
359
- name : Prevent Re-run
360
+ if : ${{ inputs.publish-release }}
342
361
uses : ./.github/workflows/actions/prevent-rerun
343
362
344
363
- name : Configure Rust Tools
@@ -423,6 +442,7 @@ jobs:
423
442
.github
424
443
425
444
- name : Prevent Re-run
445
+ if : ${{ inputs.publish-release }}
426
446
uses : ./.github/workflows/actions/prevent-rerun
427
447
428
448
- uses : actions/download-artifact@v4
@@ -431,7 +451,24 @@ jobs:
431
451
path : .
432
452
- run : |
433
453
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
+
434
464
- 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
+
435
472
- run : |
436
473
quarto check
437
474
quarto --paths
@@ -446,6 +483,7 @@ jobs:
446
483
ref : ${{ needs.configure.outputs.version_commit }}
447
484
448
485
- name : Prevent Re-run
486
+ if : ${{ inputs.publish-release }}
449
487
uses : ./.github/workflows/actions/prevent-rerun
450
488
451
489
- name : Configure
@@ -516,6 +554,7 @@ jobs:
516
554
.github
517
555
518
556
- name : Prevent Re-run
557
+ if : ${{ inputs.publish-release }}
519
558
uses : ./.github/workflows/actions/prevent-rerun
520
559
521
560
- uses : actions/download-artifact@v4
@@ -525,6 +564,16 @@ jobs:
525
564
- run : |
526
565
tar -zxf quarto-${{needs.configure.outputs.version}}-macos.tar.gz
527
566
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
+
528
577
- run : tar -tzvf quarto-${{needs.configure.outputs.version}}-macos.tar.gz | head
529
578
- run : ls -lR
530
579
- run : echo $PATH
@@ -561,7 +610,8 @@ jobs:
561
610
.github
562
611
563
612
- 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
565
615
566
616
- name : Download Artifacts
567
617
uses : actions/download-artifact@v4
@@ -666,6 +716,7 @@ jobs:
666
716
- uses : actions/checkout@v4
667
717
668
718
- name : Prevent Re-run
719
+ if : ${{ inputs.publish-release }}
669
720
uses : ./.github/workflows/actions/prevent-rerun
670
721
671
722
- name : Revert commit of version.txt
@@ -696,6 +747,7 @@ jobs:
696
747
.github
697
748
698
749
- name : Prevent Re-run
750
+ if : ${{ inputs.publish-release }}
699
751
uses : ./.github/workflows/actions/prevent-rerun
700
752
701
753
- name : Download Artifacts
0 commit comments