From fd152ae404d2a9f91c9769820e2b3f6b13c1602b Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 11:59:24 -0500 Subject: [PATCH 1/7] Enable tinytex on CI --- .github/workflows/check.yml | 2 ++ .github/workflows/publish.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2076e48..eea23ed 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -16,6 +16,8 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 + with: + tinytex: true - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f38fab..482c26b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,8 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 + with: + tinytex: true # Publish on Netlify (https://xcitecourse.org/ and # x-cite-course.netlify.app). From 42c7e5a4f97d797594ba4d30d66e8560e85d5691 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:12:11 -0500 Subject: [PATCH 2/7] Try to install tinytex with GH_TOKEN Docs (https://github.com/quarto-dev/quarto-actions/tree/main/setup) suggest that setting GH_TOKEN is recommended: > Setting GH_TOKEN is recommended as installing TinyTeX will query the > github API. Otherwise, some API rate limit issue could happen which > will make the step fails. A re-run of failed job on Github would > solve it too. --- .github/workflows/check.yml | 2 ++ .github/workflows/publish.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index eea23ed..dcced42 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -16,6 +16,8 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tinytex: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 482c26b..0cc0b0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,8 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tinytex: true From e7ca05b23852e831c6a4dcd54dc2bdb059993a8e Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:26:08 -0500 Subject: [PATCH 3/7] Try setting up TexLive on CI --- .github/workflows/check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index dcced42..f0fe9b0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,5 +21,8 @@ jobs: with: tinytex: true + - name: Set up TeXLive + uses: teatimeguest/setup-texlive-action@v3 + - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 From d4f2b274b097b7fbb69fb0bbfd0b9e3bfb515ea9 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:29:54 -0500 Subject: [PATCH 4/7] Check software versions --- .github/workflows/check.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f0fe9b0..f3ea16a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,5 +24,11 @@ jobs: - name: Set up TeXLive uses: teatimeguest/setup-texlive-action@v3 + - name: Check `tlmgr` version + run: tlmgr --version + + - name: Check quarto version + run: quarto --version + - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 From 89c837e6114fb22653c52b89b3dc06c3e8f4d301 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:34:41 -0500 Subject: [PATCH 5/7] Disable texlive installation --- .github/workflows/check.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f3ea16a..0c2d316 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,11 +21,11 @@ jobs: with: tinytex: true - - name: Set up TeXLive - uses: teatimeguest/setup-texlive-action@v3 + # - name: Set up TeXLive + # uses: teatimeguest/setup-texlive-action@v3 - - name: Check `tlmgr` version - run: tlmgr --version + # - name: Check `tlmgr` version + # run: tlmgr --version - name: Check quarto version run: quarto --version From d1f208afcdcff7d5e01d2547f636563c5c773ef0 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:35:25 -0500 Subject: [PATCH 6/7] Print quarto tools --- .github/workflows/check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0c2d316..c23bc5d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,5 +30,8 @@ jobs: - name: Check quarto version run: quarto --version + - name: Print Quarto tools + run: quarto tools + - name: Render Quarto Project uses: quarto-dev/quarto-actions/render@v2 From af062ffc8d1c8e032e042b548fa4aebcc8f04544 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 14 May 2024 12:35:42 -0500 Subject: [PATCH 7/7] Print versions on publish workflow --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0cc0b0b..eaa8b4c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,6 +25,12 @@ jobs: with: tinytex: true + - name: Print Quarto version + run: quarto --version + + - name: Print Quarto tools + run: quarto tools + # Publish on Netlify (https://xcitecourse.org/ and # x-cite-course.netlify.app). - name: Render and Publish on netlify