Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dart sass to actions #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

domw95
Copy link

@domw95 domw95 commented Jul 28, 2024

Added

- uses: dw-labs-org/dart-sass-gha@v1

to the actions that need it.

My editor seems to have formatted them as well, hence all the changes.

I've tried this with the htmltest action and it seems to work fine.

Needed for #212 to pass checks

Copy link
Owner

@StefMa StefMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @domw95,
thank you very much for your time and doing this.
Also sorry that I come back to you so late 😓

Just two comments, otherwise I think we are good to go with that.
Haven't checked the outcome url yet (shoud be https://hugo-fresh-4zdfckl3b-stefmas-projects.vercel.app/). But at the first glance it looks good 👏

@@ -14,9 +14,11 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.110.0'
hugo-version: "0.110.0"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to hugo docs, dart sass is compatible with 0.114.0.
Do we have to update the hugo-version here as well? 🤔

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I missed that, looks like that will need changing then. The action that just ran builds the old version so its not using dart-sass anyway

extended: true

- uses: dw-labs-org/dart-sass-gha@v1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your efforts here to creating this action! Really appreciate it 🙏
However, I think using an action here is a bit overkill.
We can install it right out of the snap repo:

- name: Install Dart Sass
  run: sudo snap install dart-sass

This is also what the hugo docs say 🙃 So I would follow that advise.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is what I thought... but I couldn't get it to work. Looking back I have a feeling it might have been a path issue so it might be a case of adding:

- run: echo "/snap/bin" >> $GITHUB_PATH

Which is easier to maintain than an action, although it was good to learn how to do it.

If you install hugo with a snap I think dart-sass is included so maybe that's even easier.

@StefMa
Copy link
Owner

StefMa commented Aug 20, 2024

@domw95 are you still interested in fixing this PR ? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants