commit 8d7e0e89137bd829ef7835275491cb7d64d97a87
parent f868044f1de74065a23d400e1abd432c14247f63
Author: Amit Dutta <mail@amit.is-a.dev>
Date: Mon, 24 Aug 2026 19:02:43 +0530
Merge pull request #77 from notamitgamer/notamitgamer-patch-1
Update GitHub Actions workflow with caching and fetch depth
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
@@ -71,7 +71,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v7
with:
- fetch-depth: 0
+ fetch-depth: 20
token: ${{ steps.app-token.outputs.token }}
- name: Setup Python
@@ -118,6 +118,14 @@ jobs:
- name: Install dependencies
run: npm ci
+ - name: Cache VitePress
+ uses: actions/cache@v4
+ with:
+ path: docs/.vitepress/cache
+ key: ${{ runner.os }}-vitepress-${{ hashFiles('**/*.md', 'package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-vitepress-
+
- name: Build VitePress
run: npm run docs:build
env: