Skip to content

Commit

Permalink
Update benchmark.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelDkhn committed Jan 2, 2025
1 parent b2209fa commit c413d1d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@ jobs:
# Create and set up gh-pages branch
git checkout --orphan gh-pages
git rm -rf .
mkdir -p dev/bench/data
echo "# Benchmark Results" > dev/bench/data/README.md
# Create initial index.html that will redirect to the correct location
echo '<!DOCTYPE html><meta http-equiv="refresh" content="0; url=criterion/summary/">' > index.html
git add dev/bench/data/README.md index.html
mkdir -p criterion/summary dev/bench/data
# Create root index.html that redirects to criterion/summary/
cat > index.html << 'EOL'
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;url=criterion/summary/">
</head>
</html>
EOL
git add index.html
git commit -m "Initialize gh-pages branch"
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git gh-pages
fi
Expand Down Expand Up @@ -237,4 +245,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/criterion
publish_branch: gh-pages
keep_files: true
keep_files: true
force_orphan: false

0 comments on commit c413d1d

Please sign in to comment.