File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 8383 restore-keys : |
8484 ${{ runner.os }}-pnpm-store-
8585
86+ - name : 缓存 Astro 构建和图片资源
87+ uses : actions/cache@v4
88+ with :
89+ path : |
90+ .astro
91+ src/assets/images
92+ node_modules/.astro
93+ key : ${{ runner.os }}-astro-build-${{ hashFiles('src/assets/images/**', '.astro/**') }}
94+ restore-keys : |
95+ ${{ runner.os }}-astro-build-
96+
8697 - name : 安装依赖
8798 run : pnpm install --frozen-lockfile
8899
@@ -138,6 +149,17 @@ jobs:
138149 restore-keys : |
139150 ${{ runner.os }}-pnpm-store-
140151
152+ - name : 缓存 Astro 构建和图片资源
153+ uses : actions/cache@v4
154+ with :
155+ path : |
156+ .astro
157+ src/assets/images
158+ node_modules/.astro
159+ key : ${{ runner.os }}-astro-build-${{ hashFiles('src/assets/images/**', '.astro/**') }}
160+ restore-keys : |
161+ ${{ runner.os }}-astro-build-
162+
141163 - name : 验证 pnpm 安装
142164 run : |
143165 which pnpm || echo "pnpm not found in PATH"
You can’t perform that action at this time.
0 commit comments