Skip to content

Quarto website not rendering custom theme from GitHub Action #95

Open
@dfolio

Description

@dfolio

I have a Quarto website with a custom theme (i.e. custom.scss) hosted on Netlify.
Recently, I have a strange behavior when deploying with GitHub Action: my custom theme is no longer rendered! I checked the generated bootstrap.min.css and none of my customizations are there.
Everything works fine when rendering locally (i.e. quarto preview) or publishing directly (i.e. quarto publish) to Netlify: in both cases, my custom theme is properly generated and can be found in bootstrap.min.css .
Since publishing to Netlify from the shell command works fine (i.e. my custom theme can be found on my website), I don't think this is related to a Netlify caching issue, as reported on community.rstudio.

  • Example of local rendering or when published directly (i.e. quarto publish) to Netlify
    dfolio_good

  • Bad result using GitHub Action
    dfolio_bad

Below are the content of my _deploy.yml

on:
  workflow_dispatch:
  push:
    branches: main

name: Dfolio deploy

jobs:
  build-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository
        uses: actions/checkout@v4

      - name: Setup pandoc
        uses: r-lib/actions/setup-pandoc@v2

      - name: Setup R1
        uses: r-lib/actions/setup-r@v2
      - name: Setup R2
        uses: r-lib/actions/setup-r-dependencies@v2
        with:
          packages:
            any::knitr
            any::rmarkdown
          extra-packages:
            any::remotes
            any::RefManageR

      - name: Set up Quarto
        uses: quarto-dev/quarto-actions/setup@v2
        with:
          version: pre-release
          tinytex: true

      - name: Render Quarto Project
        uses: quarto-dev/quarto-actions/render@v2
        with:
          to: html

      - name: Publish to NETLIFY
        uses: quarto-dev/quarto-actions/publish@v2
        with:
          target: netlify
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions