Skip to content

Commit dd818c9

Browse files
committed
build gatsbyt on brancch
1 parent 6e1dc1f commit dd818c9

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/test-deploy.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,19 @@ jobs:
6060
run: |
6161
npm run build
6262
npm run build:docs
63-
- name: Create preview build
63+
- name: Update Gatsby config for preview
6464
run: |
65+
cd docs/config
66+
# Update gatsby-config.js to use preview path prefix
67+
sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config.js
68+
sed -i 's|siteUrl: "https://.*"|siteUrl: "https://${{ github.repository_owner }}.github.io"|g' gatsby-config.js
69+
70+
- name: Build preview version
71+
run: |
72+
npm run build:docs
6573
cd build/docs/gatsby
6674
# Copy the built files for preview
6775
cp -r public public-preview
68-
# Fix paths in the preview build
69-
find public-preview -name "*.html" -exec sed -i 's|href="/execution-apis/|href="/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
70-
find public-preview -name "*.html" -exec sed -i 's|src="/execution-apis/|src="/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
71-
find public-preview -name "*.js" -exec sed -i 's|"/execution-apis/|"/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
72-
find public-preview -name "*.css" -exec sed -i 's|url(/execution-apis/|url(/execution-apis/preview/PR${{ github.event.number }}/|g' {} \;
7376
7477
- name: Upload preview build artifact
7578
uses: actions/upload-artifact@v4

docs/reference/contributors-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributors Guide with cheese and more cheese and less cheese
1+
# Contributors Guide with cheese and more cheese and more or less cheese
22

33
This guide will explain for new and experienced contributors alike how to
44
propose changes to Ethereum JSON-RPC API.

0 commit comments

Comments
 (0)