From 1058ba5e8566349ad7da93bd3a4475707d0b9f68 Mon Sep 17 00:00:00 2001 From: Benno Lorenz Date: Fri, 13 Jun 2025 15:47:57 +0200 Subject: [PATCH] Change workflow --- .gitea/workflows/deploy.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5c43e74..1d11ba3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -29,16 +29,14 @@ jobs: hugo-version: "latest" extended: true - # Cache the Hugo build output - - name: Cache Hugo build + # Cache resources but not public to prevent infinite loops + - name: Cache Hugo resources uses: actions/cache@v3 with: - path: | - public - resources/_gen - key: ${{ runner.os }}-hugo-build-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }} + path: resources/_gen + key: ${{ runner.os }}-hugo-resources-${{ hashFiles('content/**', 'layouts/**', 'static/**', 'themes/**', 'config/**') }} restore-keys: | - ${{ runner.os }}-hugo-build- + ${{ runner.os }}-hugo-resources- - name: Build run: hugo --minify --buildFuture