-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(taiko-client): soft block driver APIs (#18273)
Co-authored-by: RogerLamTd <[email protected]> Co-authored-by: Roger <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Wang <[email protected]> Co-authored-by: maskpp <[email protected]> Co-authored-by: Jeffery Walsh <[email protected]>
- Loading branch information
1 parent
6356cd2
commit 9fff7ff
Showing
26 changed files
with
3,549 additions
and
1,294 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "Taiko Client Github Pages" | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "packages/taiko-client/**" | ||
|
||
jobs: | ||
swagger-gen: | ||
runs-on: [arc-runner-set] | ||
steps: | ||
- name: Checkout code | ||
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: Commit Swagger docs | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
if ! git diff --quiet; then | ||
git commit -m "Update Swagger documentation" | ||
git push origin HEAD:${{ github.ref_name }} | ||
else | ||
echo "No changes to commit" | ||
fi | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
deploy: | ||
runs-on: [arc-runner-set] | ||
needs: swagger-gen | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- 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: soft-block-apis |
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
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
Oops, something went wrong.