feat: some shit
This commit is contained in:
17
.github/workflows/default.yaml
vendored
17
.github/workflows/default.yaml
vendored
@@ -18,22 +18,14 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: 🔄 Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: 🔢 Prepare cache keys
|
||||
run: |
|
||||
# Calculate cache IDs for Git LFS
|
||||
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
|
||||
LFS_CACHE_ID=$(cat .lfs-assets-id | md5sum)-v1
|
||||
echo "LFS_CACHE_ID=$LFS_CACHE_ID" >> $GITHUB_ENV
|
||||
echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
|
||||
|
||||
- name: 🗄️ Cache Git LFS objects
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .git/lfs
|
||||
key: ${{ runner.os }}-lfs-${{ env.LFS_CACHE_ID }}
|
||||
|
||||
- name: 🛠️ Cache PNPM dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
@@ -50,9 +42,6 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-astro-
|
||||
|
||||
- name: 🔄 Pull Git LFS files
|
||||
run: git lfs pull
|
||||
|
||||
- name: 🏗️ Build site
|
||||
run: |
|
||||
pnpm i && pnpm build
|
||||
|
||||
Reference in New Issue
Block a user