File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments