feat(ci): use fancy setup-hugo action
All checks were successful
Deploy pages / deploy (push) Successful in 34s
All checks were successful
Deploy pages / deploy (push) Successful in 34s
This commit is contained in:
parent
1fde19b8af
commit
c568dfa18f
1 changed files with 2 additions and 8 deletions
|
@ -13,15 +13,9 @@ jobs:
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22.x"
|
go-version: "1.22.x"
|
||||||
- name: Setup Hugo
|
- uses: https://code.icb4dc0.de/prskr/setup-hugo@main
|
||||||
uses: peaceiris/actions-hugo@v3
|
|
||||||
with:
|
with:
|
||||||
extended: true
|
dart-sass: true
|
||||||
- name: Install sass
|
|
||||||
run: |
|
|
||||||
export SASS_VERSION=$(curl https://api.github.com/repos/sass/dart-sass/releases | jq -r '. | first |.tag_name | capture("(?<version>[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)") | .version')
|
|
||||||
curl -L "https://github.com/sass/dart-sass/releases/download/${SASS_VERSION}/dart-sass-${SASS_VERSION}-linux-arm64.tar.gz" | tar xvz -C /opt/
|
|
||||||
ln -s /opt/dart-sass/sass /usr/local/bin/
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.cache/hugo_cache
|
path: /home/runner/.cache/hugo_cache
|
||||||
|
|
Loading…
Reference in a new issue