Skip to content

Commit d4df4cd

Browse files
committed
tidy up build scripts for cloudflare pages
1 parent 1c7cdc8 commit d4df4cd

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/jekyll.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ jobs:
2828
ruby-version: '3.3'
2929
bundler-cache: true
3030

31-
- run: npm run schema-to-data
32-
33-
- run: bundle exec jekyll build
31+
- run: bundle exec ./scripts/build.sh
3432

3533
- uses: actions/upload-pages-artifact@v4
3634

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"scripts": {
3-
"schema-to-data": "node scripts/schema-to-data.js schema/dist/dist-v0.0.1.json _data/generated/schema.json"
3+
"deploy": "./scripts/build.sh && wrangler deploy",
4+
"preview": "./scripts/build.sh && wrangler dev"
5+
46
},
57
"dependencies": {
68
"@apidevtools/json-schema-ref-parser": "^15.4.0",

scripts/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/bash
2+
node scripts/schema-to-data.js schema/dist/dist-v0.0.1.json _data/generated/schema.json
23
npm run schema-to-data
34
jekyll build

0 commit comments

Comments
 (0)