From 3b12c353899a8b2655f315f7dbf1e48a3315ccf9 Mon Sep 17 00:00:00 2001 From: hoernschen Date: Sat, 21 Oct 2023 19:04:14 +0000 Subject: [PATCH] .forgejo/workflows/build.yaml aktualisiert --- .forgejo/workflows/build.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 2afce15..6739c1d 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -3,14 +3,25 @@ on: [push] branches: [main] jobs: build: - runs-on: docker - container: - image: klakegg/hugo + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.115.4 steps: + - name: Install Hugo CLI + run: | + 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 - uses: actions/checkout@v3 with: submodules: recursive - - run: hugo --minify + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: hugo --minify - uses: actions/upload-artifact@v3 with: name: hugo-output