mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 10:14:44 -04:00
Improve Dart Sass Installation in Example Workflow
This commit is contained in:
parent
a22255b0b2
commit
d30a5ef73d
@ -116,7 +116,23 @@ jobs:
|
||||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||
- name: Install Dart Sass
|
||||
run: sudo snap install dart-sass
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
# Get latest release name
|
||||
VERSION=$(gh api repos/sass/dart-sass/releases/latest --jq .tag_name)
|
||||
|
||||
# Build file and download URL
|
||||
FILE="dart-sass-${VERSION}-linux-x64.tar.gz"
|
||||
URL="https://github.com/sass/dart-sass/releases/download/${VERSION}/${FILE}"
|
||||
|
||||
# Download and extract
|
||||
cd ${{ runner.temp }}
|
||||
curl -L -o $FILE $URL
|
||||
tar -xzf $FILE
|
||||
|
||||
# Install binaries
|
||||
sudo mv dart-sass/* /usr/local/bin/
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
Loading…
x
Reference in New Issue
Block a user