File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,28 @@ jobs:
30
30
id : hugo-version
31
31
run : cat netlify.toml | grep HUGO_VERSION | tr -d ' "' >> "$GITHUB_OUTPUT"
32
32
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
+
33
37
- name : Install Hugo CLI
34
38
env :
35
39
HUGO_VERSION : ${{ steps.hugo-version.outputs.HUGO_VERSION }}
36
40
run : |
37
41
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
38
42
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
39
43
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
+
40
55
- name : Generate config
41
56
run : python gen_config.py
42
57
You can’t perform that action at this time.
0 commit comments