Skip to content

Commit f3c8c52

Browse files
committed
remove docusaurus nonsense
1 parent 994c9da commit f3c8c52

File tree

4 files changed

+40781
-23782
lines changed

4 files changed

+40781
-23782
lines changed

.github/workflows/deploy.yaml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
1-
name: Deploy specification
1+
name: Deploy to GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- master
6+
- openrpc-v2
77
workflow_dispatch:
88

9-
env:
10-
# this avoids node running out of memory while building
11-
NODE_OPTIONS: --max_old_space_size=20480
12-
139
jobs:
14-
deploy-gh-pages:
10+
build:
11+
name: Build Docs
1512
runs-on: ubuntu-latest
16-
permissions:
17-
pages: write
1813
steps:
1914
- uses: actions/checkout@v4
20-
- name: Use Node.js 22
21-
uses: actions/setup-node@v4
2215
with:
23-
node-version: '22'
24-
- run: npm ci
25-
- run: npm run build
26-
- run: npm run build:docs
27-
- name: Deploy to GitHub Pages
28-
if: success()
29-
uses: crazy-max/ghaction-github-pages@v4
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v4
3018
with:
31-
target_branch: gh-pages
32-
build_dir: build/docs/gatsby/public
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
node-version: 20
20+
cache: npm
21+
22+
- name: Install dependencies
23+
run: npm install --frozen-lockfile
24+
25+
- name: Build specs and website
26+
run: |
27+
npm run build
28+
npm run build:docs
29+
30+
- name: Upload Build Artifact
31+
uses: actions/upload-pages-artifact@v3
32+
with:
33+
path: build
34+
35+
deploy:
36+
name: Deploy to GitHub Pages
37+
needs: build
38+
39+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
40+
permissions:
41+
pages: write # to deploy to Pages
42+
id-token: write # to verify the deployment originates from an appropriate source
43+
44+
# Deploy to the github-pages environment
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.github/workflows/test-deploy.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
workflow_dispatch:
10+
11+
jobs:
12+
test-deploy:
13+
name: Test deployment
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
24+
- name: Install dependencies
25+
run: npm install --frozen-lockfile
26+
- name: Test build website
27+
run: |
28+
npm run build
29+
npm run build:docs

0 commit comments

Comments
 (0)