Skip to content

Commit

Permalink
Add build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonappah committed Jun 27, 2024
1 parent c3b776c commit 10e5b99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Astro Build Assets
id: astro
uses: actions/cache@v4
with:
path: node_modules/.astro
key: ${{ runner.os }}-astro
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install modules
Expand Down
2 changes: 1 addition & 1 deletion og-images.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function getTtfFont(family, axes, value) {
return await fetch(ttfUrl).then(res => res.arrayBuffer())
}

const UNBOUNDED_TTF = 'node_modules/unbounded.ttf'
const UNBOUNDED_TTF = 'node_modules/.astro/unbounded.ttf'

let fontBuffer

Expand Down

0 comments on commit 10e5b99

Please sign in to comment.