-
Notifications
You must be signed in to change notification settings - Fork 388
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,11 @@ jobs: | |
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v3 | ||
with: | ||
hugo-version: '0.110.0' | ||
hugo-version: "0.110.0" | ||
extended: true | ||
|
||
- uses: dw-labs-org/dart-sass-gha@v1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your efforts here to creating this action! Really appreciate it 🙏 - name: Install Dart Sass
run: sudo snap install dart-sass This is also what the hugo docs say 🙃 So I would follow that advise. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
- name: Build | ||
working-directory: docs | ||
run: hugo --minify | ||
|
@@ -26,5 +28,5 @@ jobs: | |
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
force_orphan: true | ||
commit_message: '[skip ci] Deploy:' | ||
commit_message: "[skip ci] Deploy:" | ||
publish_dir: docs/public |
There was a problem hiding this comment.
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? 🤔
There was a problem hiding this comment.
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