Skip to content

Commit 2c7285f

Browse files
fix: benchmark workflows file 2
1 parent fa213e2 commit 2c7285f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,19 @@ jobs:
4040
with:
4141
name: benchmark-results
4242
path: build/bin/build/bin/${{ env.BUILD_CONFIG }}/benchmark_result.json
43-
43+
44+
- name: Create gh-pages branch if not exists
45+
run: |
46+
git fetch origin gh-pages || (
47+
git checkout --orphan gh-pages &&
48+
git rm -rf . &&
49+
git commit --allow-empty -m "Initial gh-pages branch" &&
50+
git push origin gh-pages
51+
)
52+
shell: bash
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
4456
- name: Store benchmark result
4557
uses: benchmark-action/github-action-benchmark@v1
4658
with:

0 commit comments

Comments
 (0)