Skip to content

Commit 8299df2

Browse files
Install Dart Sass binary for GH pages (#702)
1 parent 0adbabb commit 8299df2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,28 @@ jobs:
3030
id: hugo-version
3131
run: cat netlify.toml | grep HUGO_VERSION | tr -d ' "' >> "$GITHUB_OUTPUT"
3232

33+
- name: Read DART SASS version
34+
id: dart-sass-version
35+
run: cat netlify.toml | grep --max-count=1 DART_SASS_VERSION | tr -d ' "' >> "$GITHUB_OUTPUT"
36+
3337
- name: Install Hugo CLI
3438
env:
3539
HUGO_VERSION: ${{ steps.hugo-version.outputs.HUGO_VERSION }}
3640
run: |
3741
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
3842
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3943
44+
- name: Install Dart Sass
45+
env:
46+
DART_SASS_VERSION: ${{ steps.dart-sass-version.outputs.DART_SASS_VERSION }}
47+
DART_SASS_URL: "https://github.com/sass/dart-sass/releases/download/"
48+
run: |
49+
export DART_SASS_TARBALL="dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz" && \
50+
curl -LJO ${env.DART_SASS_URL}/${DART_SASS_VERSION}/${DART_SASS_TARBALL} && \
51+
tar -xf ${DART_SASS_TARBALL} && \
52+
rm ${DART_SASS_TARBALL}
53+
export PATH=$(pwd)/dart-sass:$PATH
54+
4055
- name: Generate config
4156
run: python gen_config.py
4257

0 commit comments

Comments
 (0)