Skip to content

chore: 🤖 remove ipfs support, use github pages instead only #20

chore: 🤖 remove ipfs support, use github pages instead only

chore: 🤖 remove ipfs support, use github pages instead only #20

Workflow file for this run

name: OpenRPC (Build & Deploy GitHub pages)
on:
push:
branches:
- main
- chore/docs-rpc-publisher
workflow_dispatch:
jobs:
deploy:
name: Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs/rpc
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install open-rpc
run: npm install -g @open-rpc/generator
- name: Update Openrpc (JSON)
run: open-rpc-generator generate -c openrpc.json
- name: Generate OpenRPC Site (Gatsby)
run: open-rpc-generator generate -t docs -d openrpc.json -l gatsby
- name: Install dependencies
working-directory: ./docs/rpc/docs/gatsby
run: |
npm i [email protected] [email protected] -S
npm i [email protected] -S
npm install --force
- name: Build docs
working-directory: ./docs/rpc/docs/gatsby
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
npx gatsby build --prefix-paths
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/rpc/docs/gatsby/public
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com