From fb70465cd55fa692a22d618e36bca9f97d5f3647 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Fri, 30 Aug 2024 18:27:40 +0200 Subject: [PATCH] ci: cache maven deps for deploy action --- .github/workflows/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36853fd6a..7a1375616 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -70,6 +70,14 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Cache Maven Deps + uses: actions/cache@v4 + with: + path: $GITHUB_WORKSPACE/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Build backend working-directory: backend run: mvn --batch-mode --errors --fail-at-end --show-version --no-transfer-progress install