Should cache Astro build folders, not dist
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 3m47s
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 3m47s
This commit is contained in:
@@ -16,6 +16,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
lfs: true
|
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
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v5
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
@@ -27,12 +35,6 @@ jobs:
|
|||||||
working-directory: .
|
working-directory: .
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Cache dist folder
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: dist/
|
|
||||||
key: ${{ runner.os }}-dist
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
working-directory: .
|
working-directory: .
|
||||||
|
Reference in New Issue
Block a user