From d5079fb1b17af376a25facc394366f7e470c3ab5 Mon Sep 17 00:00:00 2001 From: Pete Gregory Date: Sun, 14 Dec 2025 13:00:39 +0000 Subject: [PATCH] modify pub caching behviour --- .gitea/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2b62983..4fe4961 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -85,10 +85,13 @@ jobs: - name: Allow all git directories (CI) run: git config --global --add safe.directory '*' + - name: Set pub cache path + run: echo "PUB_CACHE=${GITHUB_WORKSPACE}/.pub-cache" >> "$GITHUB_ENV" + - name: Cache pub packages uses: actions/cache@v3 with: - path: ~/.pub-cache + path: ${{ env.PUB_CACHE }} key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }} restore-keys: | flutter-pub-${{ runner.os }}- @@ -196,10 +199,13 @@ jobs: - name: Allow all git directories (CI) run: git config --global --add safe.directory '*' + - name: Set pub cache path + run: echo "PUB_CACHE=${GITHUB_WORKSPACE}/.pub-cache" >> "$GITHUB_ENV" + - name: Cache pub packages uses: actions/cache@v3 with: - path: ~/.pub-cache + path: ${{ env.PUB_CACHE }} key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }} restore-keys: | flutter-pub-${{ runner.os }}-