-
Notifications
You must be signed in to change notification settings - Fork 73
67 lines (56 loc) · 1.89 KB
/
publish_benchmarks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Publish Benchmark
on:
workflow_run:
workflows: [ "Benchmark" ]
branches: [ main ]
types:
- completed
workflow_dispatch:
permissions:
id-token: write # For getting AWS permissions
contents: write
packages: read
pages: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
publish:
name: Publish benchmarks
runs-on: ubuntu-24.04
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::493985724844:role/pgroll-benchmark-results-access
aws-region: us-east-1
mask-aws-account-id: 'no'
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'dev/go.mod'
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Download results and build html
working-directory: ./dev
run: |
aws s3 cp s3://pgroll-benchmark-results/benchmark-results.json $HOME/benchmark-results.json
go run benchmark-results/build.go $HOME/benchmark-results.json /home/runner/work/pgroll/pgroll/benchmarks.html
# This will pick up the benchmarks.html file generated in the previous step and will also
# publish the README at index.html
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./static
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./static
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4