chore(taiko-client): update Go contract bindings (#18882) #197
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Taiko Client Soft Blocks Documentation" | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "packages/taiko-client/**" | |
jobs: | |
generate-and-deploy: | |
runs-on: [arc-runner-set] | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23" | |
- name: Install swaggo | |
run: | | |
export CGO_ENABLED=0 | |
go install github.com/swaggo/swag/cmd/swag@latest | |
- name: Generate Swagger documentation | |
run: | | |
export CGO_ENABLED=0 | |
cd packages/taiko-client | |
./scripts/gen_swagger_json.sh | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: packages/taiko-client/docs # Set this to where your `index.html` is located | |
publish_branch: gh-pages | |
destination_dir: preconf_blocks_api |