From 381835ee16bb4b4d09a72101fa096909fc9f1085 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Mon, 29 Apr 2024 19:31:56 +0200 Subject: [PATCH] fix(ci): install sass --- .forgejo/workflows/deploy.yml | 13 +++++++++++++ .vscode/settings.json | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index e484de8..1c539b9 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -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("(?[[: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 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6a318ab --- /dev/null +++ b/.vscode/settings.json @@ -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" + } +} \ No newline at end of file