feat(ci): use fancy setup-hugo action
All checks were successful
Deploy pages / deploy (push) Successful in 34s

This commit is contained in:
Peter 2024-05-02 18:34:57 +02:00
parent 1fde19b8af
commit c568dfa18f
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -13,15 +13,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: "1.22.x"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
- uses: https://code.icb4dc0.de/prskr/setup-hugo@main
with:
extended: 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/
dart-sass: true
- uses: actions/cache@v4
with:
path: /home/runner/.cache/hugo_cache