update ci/cd
This commit is contained in:
parent
437f7b130d
commit
7fc99bf87b
@ -19,7 +19,8 @@ main-build-job:
|
||||
tags:
|
||||
- hugo
|
||||
before_script:
|
||||
- echo "PATH is $PATH"
|
||||
- echo "Installing dart-sass-embedded with script"
|
||||
- ./install-dart-sass-embedded.sh
|
||||
script:
|
||||
- echo "Building configuration"
|
||||
- hugo
|
||||
|
||||
23
install-dart-sass-embedded.sh
Executable file
23
install-dart-sass-embedded.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# based on https://discourse.gohugo.io/t/using-dart-sass-hugo-and-netlify/37099/7
|
||||
# and this blog post by Bryce Wry https://www.brycewray.com/posts/2022/03/using-dart-sass-hugo-sequel/
|
||||
|
||||
echo "Install Dart Sass Embedded..."
|
||||
|
||||
# This should be in the PATH.
|
||||
BIN_DIR=/bin
|
||||
|
||||
DARTSASS_VERSION=1.49.9
|
||||
|
||||
mkdir -p $BIN_DIR
|
||||
|
||||
curl -LJO https://github.com/sass/dart-sass-embedded/releases/download/${DARTSASS_VERSION}/sass_embedded-${DARTSASS_VERSION}-linux-x64.tar.gz;
|
||||
|
||||
tar -xvf sass_embedded-${DARTSASS_VERSION}-linux-x64.tar.gz;
|
||||
|
||||
mv sass_embedded/dart-sass-embedded $BIN_DIR
|
||||
|
||||
rm -rf sass_embedded*;
|
||||
|
||||
dart-sass-embedded --version
|
||||
Loading…
Reference in New Issue
Block a user