From: Cameron Otsuka Date: Mon, 29 Dec 2025 20:18:28 +0000 (-0800) Subject: add concurrency control, dependency caching, manual workflow runs, add back restore... X-Git-Tag: v2.2.0~3 X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=dad1a694b9d8fa9cb5363a2ed292778fb6462924;p=cotsuka.github.io add concurrency control, dependency caching, manual workflow runs, add back restore keys --- diff --git a/.github/workflows/deploy-to-ghpages.yml b/.github/workflows/deploy-to-ghpages.yml index 3bafc73..24b4f8b 100644 --- a/.github/workflows/deploy-to-ghpages.yml +++ b/.github/workflows/deploy-to-ghpages.yml @@ -1,9 +1,14 @@ name: Deploy to GitHub Pages +concurrency: + cancel-in-progress: true + group: pages + on: push: branches: - main + workflow_dispatch: jobs: build: @@ -15,6 +20,14 @@ jobs: - uses: oven-sh/setup-bun@v2 + - name: Restore bun dependency cache + uses: actions/cache@v5 + with: + path: node_modules/ + key: bun-${{ hashFiles('bun.lock') }} + restore-keys: | + bun- + - name: Install dependencies run: bun install --frozen-lockfile @@ -29,12 +42,16 @@ jobs: with: path: .astro-cache/assets/ key: astro-images-${{ hashFiles('src/assets/**/*', 'content/**/*.gif', 'content/**/*.jpg', 'content/**/*.png', 'content/**/*.svg', 'content/**/*.webp') }} + restore-keys: | + astro-images- - name: Restore OpenGraph image cache uses: actions/cache@v5 with: path: .og-cache/ key: og-images-${{ hashFiles('content/**/*.md', 'content/**/*.mdx') }} + restore-keys: | + og-images- - name: Build run: bun run build