From 513504d175d659f0afcf852eb97d124d1074bf0f Mon Sep 17 00:00:00 2001 From: Nathan Cummins Date: Mon, 8 Sep 2025 16:19:46 +0930 Subject: [PATCH] Should cache Astro build folders, not dist --- .gitea/workflows/deploy.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 79aad48..5afe778 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -16,6 +16,14 @@ jobs: with: lfs: true + - name: Cache Astro build cache folder + uses: actions/cache@v4 + with: + path: | + node_modules/.astro/ + node_modules/.vite/ + key: ${{ runner.os }}-buildcache + - name: Setup Node uses: actions/setup-node@v5 with: @@ -27,12 +35,6 @@ jobs: working-directory: . run: npm install - - name: Cache dist folder - uses: actions/cache@v4 - with: - path: dist/ - key: ${{ runner.os }}-dist - - name: Build shell: "bash" working-directory: .