fix(ci): install sass
All checks were successful
Deploy pages / deploy (push) Successful in 45s

This commit is contained in:
Peter 2024-04-29 19:31:56 +02:00
parent 8da373eb46
commit 381835ee16
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 18 additions and 0 deletions

View file

@ -15,6 +15,19 @@ jobs:
go-version: "1.22.x"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
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/
- uses: actions/cache@v4
with:
path: /home/runner/.cache/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build
run: |
hugo mod get

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///Users/baez/sources/code.icb4dc0.de/prskr/blog/.forgejo/workflows/deploy.yml"
}
}