Skip to content

Commit 91df4c7

Browse files
Use benchmark-action/github-action-benchmark
1 parent 8ed9d89 commit 91df4c7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/performance.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ jobs:
107107
retention-days: 1
108108
combine_metrics:
109109
name: Combine performance metrics
110+
# if: ${{ github.ref == 'refs/heads/main' }}
111+
environment:
112+
name: github-pages
113+
url: ${{ steps.deployment.outputs.page_url }}
114+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
115+
permissions:
116+
contents: read
117+
pages: write
118+
id-token: write
110119
runs-on: ubuntu-latest
111120
needs: performance_metric
112121
steps:
@@ -143,3 +152,13 @@ jobs:
143152
path: |
144153
all_performance_metrics.txt
145154
all_performance_metrics.json
155+
- name: Store benchmark result
156+
uses: benchmark-action/github-action-benchmark@v1
157+
with:
158+
# What tool you used (see docs for list, or use 'customLocal')
159+
tool: 'customLocal'
160+
output-file-path: all_performance_metrics.json
161+
# Access token to push to gh-pages
162+
github-token: ${{ secrets.GITHUB_TOKEN }}
163+
# Push and deploy automatically
164+
auto-push: true

0 commit comments

Comments
 (0)