Skip to content

Add rate limiter for RPC requests (#6264) #680

Add rate limiter for RPC requests (#6264)

Add rate limiter for RPC requests (#6264) #680

Workflow file for this run

---
#################################################################################
# Build and publish rust documentation
#################################################################################
name: "Build docs"
env:
needs_nix_setup: false
# yamllint disable-line rule:truthy
on:
push:
branches:
- master
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.head_ref }}-docs
cancel-in-progress: true
jobs:
rust:
name: Rust docs
# big runner is needed because building docs involves building Rust code
runs-on: self-hosted-hoprnet-bigger
timeout-minutes: 60
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Nix
if: env.needs_nix_setup == true
uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v14
if: env.needs_nix_setup == true
with:
name: hoprnet
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
env:
USER: runner
- name: Build docs
run: nix build .#docs
- name: Increase git buffer size
if: github.ref == 'refs/heads/master'
run: git config --global http.postBuffer 524288000
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./result/share/doc/
force_orphan: true