GitHub action scss build needed?

I’m pretty new to Hugo and GitHub actions.

I’m using a Theme which uses scss and this builds fine when I make changes locally.

However, I have this site on GitHub, I’ve set up actions to build the content using Hugo.

The problem is, no changes I’ve made to the scss files are being displayed online, even if I commit my local changes of the scss build to GitHub.

I can’t figure out how this is possible? There’s a gap in my knowledge, are the Hugo rendered files in memory? If not how can my changes not get rendered?

Go easy on me, been a long night!

You need Hugo extended version. Most likely you missed to set that in your GitHub action workflow.

This is the workflow I use on all the sites I host on GitHub pages. See the line where it say “extended: true”.

name: Deploy Pages on Push

      - main

  group: deploy
  cancel-in-progress: true

    runs-on: ubuntu-latest
      - name: Checkout
        uses: actions/checkout@v2
          submodules: true # Fetch Hugo themes (true OR recursive)
          fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
          hugo-version: "0.95.0"
          extended: true

      - name: Build
        run: hugo

      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
          github_token: ${{ github.token }}
          publish_dir: ./public
1 Like

dude, know you’ve just made someones day!

Thanks so much, worked a treat and saved me going down a rabbit hole…

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.