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 927ba8c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: |
buffer=""
for file in "particular/particular/benches/results/*.json"; do
echo $file
done
echo "[${buffer%?}]" > benchmark.json
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 927ba8c

Please sign in to comment.