Skip to content
Merged
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
36 changes: 36 additions & 0 deletions .github/workflows/publish-misc-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish misc GitHub Pages
on:
push:
branches:
- next
paths:
- "yarn-project/scripts/latency-explorer/**"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v4

- name: Checkout benchmark-page-data repo
uses: actions/checkout@v4
with:
repository: AztecProtocol/benchmark-page-data
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
path: benchmark-page-data

- name: Copy latency explorer
run: |
mkdir -p benchmark-page-data/misc/tx-latency-explorer
cp yarn-project/scripts/latency-explorer/index.html benchmark-page-data/misc/tx-latency-explorer/index.html

- name: Push changes
working-directory: benchmark-page-data
run: |
git config user.name "AztecBot"
git config user.email "tech@aztecprotocol.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this will sometimes fail to publish. The benchmark action internally has a retry loop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly that's fine, we can always retry the action if needed. I doubt we'll be updating it too often.

git add .
git diff --cached --quiet && echo "No changes to publish" && exit 0
git commit -m "Update tx-latency-explorer from ${{ github.sha }}"
git push
Loading