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.
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 }}
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.cssand 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 inbootstrap.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 NetlifyBad result using GitHub Action

Below are the content of my
_deploy.yml