Skip to content

Commit 68e812e

Browse files
authored
Merge branch 'main' into post-render/logging
2 parents f490fb1 + 887a220 commit 68e812e

File tree

415 files changed

+52536
-36163
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+52536
-36163
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file lists revisions of large-scale formatting/style changes so that
2+
# they can be excluded from git blame results.
3+
#
4+
# To set this file as the default ignore file for git blame, run:
5+
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
6+
7+
# Run air formatter on project
8+
809462301b7e19d95dcf160ae9a85e1fe2c49b0d
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Prevent Workflow Re-run
2+
description: Fails if the workflow is re-run (github.run_attempt > 1)
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Prevent any re-run
7+
if: ${{ github.run_attempt > 1 }}
8+
run: |
9+
echo "::error::Re-running jobs is not permitted. Please trigger a new build manually at https://github.com/quarto-dev/quarto-cli/actions/workflows/create-release.yml (click 'Run workflow'), or use the GitHub CLI: 'gh workflow run create-release.yml'"
10+
exit 1
11+
shell: bash

.github/workflows/create-release.yml

Lines changed: 144 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ jobs:
2828
tag_name: v${{ steps.read-version.outputs.version_full }}
2929
version_commit: ${{ steps.version_commit.outputs.commit_long_sha }}
3030
pushed: ${{ steps.version_commit.outputs.pushed }}
31+
tagged: ${{ steps.version_commit.outputs.tagged }}
3132
tag_pushed: ${{ steps.version_commit.outputs.tag_pushed }}
3233
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'quarto-dev/quarto-cli')
3334
steps:
3435
- uses: actions/checkout@v4
3536
with:
3637
fetch-depth: 0
3738

39+
- name: Prevent Re-run
40+
if: ${{ inputs.publish-release }}
41+
uses: ./.github/workflows/actions/prevent-rerun
42+
3843
# we _also_ need npm, specifically for webui/preview
3944
- uses: actions/setup-node@v4
4045
with:
@@ -99,6 +104,10 @@ jobs:
99104
with:
100105
ref: ${{ needs.configure.outputs.version_commit }}
101106

107+
- name: Prevent Re-run
108+
if: ${{ inputs.publish-release }}
109+
uses: ./.github/workflows/actions/prevent-rerun
110+
102111
- name: Make Tarball
103112
run: |
104113
tar --owner=root --group=root -zcvf quarto-${{needs.configure.outputs.version}}.tar.gz *
@@ -117,6 +126,10 @@ jobs:
117126
with:
118127
ref: ${{ needs.configure.outputs.version_commit }}
119128

129+
- name: Prevent Re-run
130+
if: ${{ inputs.publish-release }}
131+
uses: ./.github/workflows/actions/prevent-rerun
132+
120133
- name: Configure
121134
run: |
122135
./configure.sh
@@ -150,6 +163,10 @@ jobs:
150163
with:
151164
ref: ${{ needs.configure.outputs.version_commit }}
152165

166+
- name: Prevent Re-run
167+
if: ${{ inputs.publish-release }}
168+
uses: ./.github/workflows/actions/prevent-rerun
169+
153170
- name: Configure
154171
run: |
155172
./configure.sh
@@ -183,6 +200,10 @@ jobs:
183200
with:
184201
ref: ${{ needs.configure.outputs.version_commit }}
185202

203+
- name: Prevent Re-run
204+
if: ${{ inputs.publish-release }}
205+
uses: ./.github/workflows/actions/prevent-rerun
206+
186207
- name: Configure
187208
run: |
188209
./configure.sh
@@ -227,6 +248,10 @@ jobs:
227248
with:
228249
ref: ${{ needs.configure.outputs.version_commit }}
229250

251+
- name: Prevent Re-run
252+
if: ${{ inputs.publish-release }}
253+
uses: ./.github/workflows/actions/prevent-rerun
254+
230255
- name: Configure
231256
run: |
232257
./configure.sh
@@ -257,6 +282,10 @@ jobs:
257282
with:
258283
ref: ${{ needs.configure.outputs.version_commit }}
259284

285+
- name: Prevent Re-run
286+
if: ${{ inputs.publish-release }}
287+
uses: ./.github/workflows/actions/prevent-rerun
288+
260289
- name: Configure
261290
run: |
262291
./configure.sh
@@ -283,13 +312,34 @@ jobs:
283312
runs-on: ubuntu-latest
284313
needs: [configure, make-tarball]
285314
steps:
315+
- uses: actions/checkout@v4
316+
with:
317+
ref: ${{ needs.configure.outputs.version_commit }}
318+
sparse-checkout: |
319+
.github
320+
321+
- name: Prevent Re-run
322+
if: ${{ inputs.publish-release }}
323+
uses: ./.github/workflows/actions/prevent-rerun
324+
286325
- uses: actions/download-artifact@v4
287326
with:
288327
name: Deb Zip
289328
path: .
290329
- run: |
291330
tar -zxf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz
292331
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 linux build Prepare Distribution step."
339+
exit 1
340+
fi
341+
working-directory: ${{ github.workspace }}/quarto-${{needs.configure.outputs.version}}
342+
293343
- run: |
294344
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
295345
ls -lR
@@ -303,15 +353,18 @@ jobs:
303353
needs: [configure]
304354

305355
steps:
306-
- name: Configure Rust Tools
307-
run: |
308-
rustup.exe toolchain install 1.63.0 --component rustfmt --component clippy --no-self-update
309-
rustup.exe default 1.63.0
310-
311356
- uses: actions/checkout@v4
312357
with:
313358
ref: ${{ needs.configure.outputs.version_commit }}
314359

360+
- name: Prevent Re-run
361+
if: ${{ inputs.publish-release }}
362+
uses: ./.github/workflows/actions/prevent-rerun
363+
364+
- name: Configure Rust Tools
365+
run: |
366+
rustup.exe toolchain install 1.63.0 --component rustfmt --component clippy --no-self-update
367+
rustup.exe default 1.63.0
315368
- name: Configure
316369
run: |
317370
.\configure.cmd
@@ -383,14 +436,46 @@ jobs:
383436
runs-on: windows-latest
384437
needs: [configure, make-installer-win]
385438
steps:
386-
- uses: actions/download-artifact@v4
439+
- uses: actions/checkout@v4
440+
with:
441+
ref: ${{ needs.configure.outputs.version_commit }}
442+
sparse-checkout: |
443+
.github
444+
445+
- name: Prevent Re-run
446+
if: ${{ inputs.publish-release }}
447+
uses: ./.github/workflows/actions/prevent-rerun
448+
449+
- name: "Download Windows Zip"
450+
uses: actions/download-artifact@v4
387451
with:
388452
name: Windows Zip
389453
path: .
390-
- run: |
454+
455+
- name: "Extract Windows Zip"
456+
run: |
391457
tar -xf quarto-${{needs.configure.outputs.version}}-win.zip
392-
- run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
393-
- run: |
458+
459+
# Check for share/preview/quarto-preview.js
460+
- name: Ensure share/preview/quarto-preview.js exists
461+
shell: bash
462+
run: |
463+
if [ ! -f "share/preview/quarto-preview.js" ]; then
464+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build Prepare Distribution step."
465+
exit 1
466+
fi
467+
468+
- name: "Add bin to PATH"
469+
run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
470+
471+
- name: "Show Directory Listing and PATH"
472+
run: |
473+
ls -lR
474+
echo $PATH
475+
shell: bash
476+
477+
- name: "Run Quarto Commands"
478+
run: |
394479
quarto check
395480
quarto --paths
396481
quarto --version
@@ -403,6 +488,10 @@ jobs:
403488
with:
404489
ref: ${{ needs.configure.outputs.version_commit }}
405490

491+
- name: Prevent Re-run
492+
if: ${{ inputs.publish-release }}
493+
uses: ./.github/workflows/actions/prevent-rerun
494+
406495
- name: Configure
407496
run: |
408497
./configure.sh
@@ -464,13 +553,33 @@ jobs:
464553
runs-on: macos-latest
465554
needs: [configure, make-installer-mac]
466555
steps:
556+
- uses: actions/checkout@v4
557+
with:
558+
ref: ${{ needs.configure.outputs.version_commit }}
559+
sparse-checkout: |
560+
.github
561+
562+
- name: Prevent Re-run
563+
if: ${{ inputs.publish-release }}
564+
uses: ./.github/workflows/actions/prevent-rerun
565+
467566
- uses: actions/download-artifact@v4
468567
with:
469568
name: Mac Zip
470569
path: .
471570
- run: |
472571
tar -zxf quarto-${{needs.configure.outputs.version}}-macos.tar.gz
473572
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
573+
574+
# Check for share/preview/quarto-preview.js
575+
- name: Ensure share/preview/quarto-preview.js exists
576+
shell: bash
577+
run: |
578+
if [ ! -f "share/preview/quarto-preview.js" ]; then
579+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
580+
exit 1
581+
fi
582+
474583
- run: tar -tzvf quarto-${{needs.configure.outputs.version}}-macos.tar.gz | head
475584
- run: ls -lR
476585
- run: echo $PATH
@@ -499,6 +608,17 @@ jobs:
499608
]
500609

501610
steps:
611+
- uses: actions/checkout@v4
612+
with:
613+
ref: ${{ needs.configure.outputs.version_commit }}
614+
path: quarto-cli
615+
sparse-checkout: |
616+
.github
617+
618+
- name: Prevent Re-run
619+
if: ${{ inputs.publish-release }}
620+
uses: ./quarto-cli/.github/workflows/actions/prevent-rerun
621+
502622
- name: Download Artifacts
503623
uses: actions/download-artifact@v4
504624

@@ -601,6 +721,10 @@ jobs:
601721
steps:
602722
- uses: actions/checkout@v4
603723

724+
- name: Prevent Re-run
725+
if: ${{ inputs.publish-release }}
726+
uses: ./.github/workflows/actions/prevent-rerun
727+
604728
- name: Revert commit of version.txt
605729
if: ${{ needs.configure.outputs.pushed }}
606730
run: |
@@ -614,7 +738,7 @@ jobs:
614738
git push origin $GITHUB_REF_NAME
615739
616740
- name: Deleted created tag
617-
if: ${{ needs.configure.outputs.tag_pushed }}
741+
if: ${{ needs.configure.outputs.tagged && needs.configure.outputs.tag_pushed }}
618742
run: |
619743
git push --delete origin ${{ needs.configure.outputs.tag_name }}
620744
@@ -623,10 +747,19 @@ jobs:
623747
runs-on: ubuntu-latest
624748
needs: [configure, publish-release]
625749
steps:
750+
- uses: actions/checkout@v4
751+
with:
752+
sparse-checkout: |
753+
.github
754+
755+
- name: Prevent Re-run
756+
if: ${{ inputs.publish-release }}
757+
uses: ./.github/workflows/actions/prevent-rerun
758+
626759
- name: Download Artifacts
627760
uses: actions/download-artifact@v4
628761

629-
- uses: quarto-dev/quarto-cli/.github/actions/docker@main
762+
- uses: ./.github/actions/docker
630763
with:
631764
source: ./Deb Installer/quarto-${{needs.configure.outputs.version}}-linux-amd64.deb
632765
version: ${{needs.configure.outputs.version}}

0 commit comments

Comments
 (0)