Skip to content

Commit

Permalink
Add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Canleskis committed Jan 14, 2024
1 parent 02a3262 commit 110429a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: canleskis/particular
path: particular

- name: Deploy Benchmarks
run: |
for file in "${GITHUB_WORKSPACE}/particular/particular/benches/results/*"; do
echo $file
done
14 changes: 14 additions & 0 deletions scripts/deploy_benchmarks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add all the benchmarks to a single json file in a list.

out_dir=$1
particular_dir=$2
name=${2:-"benchmarks"}

buffer=""

for file in $particular_dir/particular/benches/results/*-*-*.json; do
buffer+=$(cat "$file")
buffer+=","
done

echo "[${buffer%?}]" > $out_dir/$name.json

0 comments on commit 110429a

Please sign in to comment.