From 87f5a6dab86ec952eac71a2575bc9be2aa7e9308 Mon Sep 17 00:00:00 2001 From: Benno Lorenz Date: Fri, 13 Jun 2025 16:14:43 +0200 Subject: [PATCH] cache it to the max --- .gitea/workflows/deploy.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1d11ba3..3503260 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,9 +11,26 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - submodules: true + submodules: false # Don't fetch submodules yet fetch-depth: 0 + # Cache the submodule content + - name: Cache submodules + id: cache-submodules + uses: actions/cache@v3 + with: + path: | + .git/modules + themes/blowfish + key: ${{ runner.os }}-submodules-${{ hashFiles('.gitmodules') }} + restore-keys: | + ${{ runner.os }}-submodules- + + # Initialize submodules if cache miss + - name: Initialize submodules + if: steps.cache-submodules.outputs.cache-hit != 'true' + run: git submodule update --init --recursive + # Cache Hugo dependencies and modules - name: Cache Hugo dependencies uses: actions/cache@v3