Skip to content

Commit 3437d6b

Browse files
committed
Install Dart Sass from upstream tarball instead of snap
The dart-sass-embedded snap is deprecated and snap store outages were causing transient failures ("unable to contact snap store"). Pulling the prebuilt binary from the sass/dart-sass GitHub release is what Hugo's official docs now recommend.
1 parent 45b2906 commit 3437d6b

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/pr-preview.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
run: |
3737
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3838
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39-
- name: Install Dart Sass Embedded
40-
run: sudo snap install dart-sass-embedded
39+
- name: Install Dart Sass
40+
env:
41+
DART_SASS_VERSION: 1.83.4
42+
run: |
43+
wget -O /tmp/dart-sass.tar.gz \
44+
"https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
45+
tar -xf /tmp/dart-sass.tar.gz -C /tmp
46+
echo "/tmp/dart-sass" >> $GITHUB_PATH
4147
- name: Setup Pages
4248
id: pages
4349
uses: actions/configure-pages@v5

.github/workflows/production-deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
run: |
3737
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3838
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39-
- name: Install Dart Sass Embedded
40-
run: sudo snap install dart-sass-embedded
39+
- name: Install Dart Sass
40+
env:
41+
DART_SASS_VERSION: 1.83.4
42+
run: |
43+
wget -O /tmp/dart-sass.tar.gz \
44+
"https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz"
45+
tar -xf /tmp/dart-sass.tar.gz -C /tmp
46+
echo "/tmp/dart-sass" >> $GITHUB_PATH
4147
- name: Checkout
4248
uses: actions/checkout@v4
4349
with:

0 commit comments

Comments
 (0)