-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.83 KB
/
sync-benchmarks.yml
File metadata and controls
59 lines (52 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Sync Benchmark Results
on:
repository_dispatch:
types: [benchmark-updated]
jobs:
rebuild:
name: Rebuild Docs with New Benchmark Data
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log Trigger Info
run: |
echo "Benchmark update received"
echo "Version: ${{ github.event.client_payload.version }}"
echo "Run ID: ${{ github.event.client_payload.run_id }}"
- name: Verify Results Exist
run: |
if [[ -d "results/latest" ]]; then
echo "Latest results found:"
ls -la results/latest/
else
echo "::warning::No results directory found"
fi
# TODO: Add docs site build/deploy steps here when the site is ready.
# Example for a static site generator:
#
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: '22'
#
# - name: Install Dependencies
# run: npm ci
#
# - name: Build Site
# run: npm run build
#
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v4
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./dist
- name: Summary
run: |
echo "## Benchmark Sync Complete" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** ${{ github.event.client_payload.version }}" >> $GITHUB_STEP_SUMMARY
echo "**Run ID:** ${{ github.event.client_payload.run_id }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Results are available in \`results/\` directory." >> $GITHUB_STEP_SUMMARY
echo "Docs rebuild will be triggered automatically once the site is configured." >> $GITHUB_STEP_SUMMARY