Skip to content

Commit

Permalink
chore(rpc/docs): cache gatsby build in gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Jun 18, 2024
1 parent f139847 commit c6be41a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/openrpc-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,17 @@ jobs:
# fix: 🐛 support gatsby path prefix https://github.com/open-rpc/generator/pull/708
run: sed -i 's|href="/api-documentation"|href="/lightning/api-documentation"|g' src/pages/index.tsx

- name: Build docs
- name: Cached gatsby build
uses: actions/cache@v4
with:
path: |
docs/rpc/docs/gatsby/public
docs/rpc/docs/gatsby/.cache
key: ${{ runner.os }}-gatsby-build-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-gatsby-build-
- name: Build gatsby docs
working-directory: ./docs/rpc/docs/gatsby
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
Expand Down

0 comments on commit c6be41a

Please sign in to comment.