@@ -3,55 +3,31 @@ name: Deploy specification
33on :
44 push :
55 branches :
6- - main
6+ - openrpc-v2
77
88env :
99 # this avoids node running out of memory while building
1010 NODE_OPTIONS : --max_old_space_size=20480
1111
1212jobs :
13- deploy-spec :
14- runs-on : ubuntu-latest
15- steps :
16- - uses : actions/checkout@v2
17- - name : Use Node.js 15
18- uses : actions/setup-node@v1
19- with :
20- node-version : ' 15'
21- - run : npm ci
22- - run : npm run build
23- - name : setup git config
24- run : |
25- git config user.name "GitHub Actions Bot"
26- git config user.email "<>"
27- - name : Deploy assembled spec
28- run : |
29- git checkout -b assembled-spec
30- git add -f openrpc.json
31- git add -f refs-openrpc.json
32- git commit -m "assemble openrpc.json"
33- git push -fu origin assembled-spec
3413 deploy-gh-pages :
3514 runs-on : ubuntu-latest
3615 steps :
37- - uses : actions/checkout@v2
38- - name : Use Node.js 15
39- uses : actions/setup-node@v1
16+ - uses : actions/checkout@v4
17+ - name : Use Node.js 22
18+ uses : actions/setup-node@v4
4019 with :
41- node-version : ' 15 '
20+ node-version : ' 22 '
4221 - run : npm ci
4322 - run : npm run build
44- - run : npm run generate-clients
45- - run : ' sed -i -e "s|Prefix: \"\"|Prefix: \"/execution-apis\"|g" build/docs/gatsby/gatsby-config.js'
46- - run : ' sed -i -e "s|/api|api|g" build/docs/gatsby/src/pages/index.tsx'
4723 - run : npm run build:docs
4824 - name : setup git config
4925 run : |
5026 git config user.name "GitHub Actions Bot"
5127 git config user.email "<>"
5228 - name : Deploy to GitHub Pages
5329 if : success()
54- uses : crazy-max/ghaction-github-pages@v3
30+ uses : crazy-max/ghaction-github-pages@v4
5531 with :
5632 target_branch : gh-pages
5733 build_dir : build/docs/gatsby/public
0 commit comments