Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow to sync up suave-std docs #98

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/suave-std-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: SuaveLib sync

on:
workflow_dispatch:

jobs:
sync-suave-std-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Checkout suave-std repository
uses: actions/checkout@v4
with:
repository: flashbots/suave-std
path: suave-std
persist-credentials: false
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.21

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install and build the contracts
run: |
cd suave-std
forge install
forge build

- name: Run docs generator
run: |
cd suave-std/tools/docs-gen
go run main.go --suave-std ../../../docs/tools/suave-std
Loading