Skip to content

Commit c018ab7

Browse files
Add GA
WIP
1 parent 0c0d504 commit c018ab7

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/upload-to-s3.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Upload minimal tar to S3
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches:
7+
- main
8+
workflow_dispatch: {}
9+
jobs:
10+
upload_tar_to_s3:
11+
# Let's make this fast by using a beefy runner.
12+
runs-on: ubuntu-24.04
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
18+
steps:
19+
- name: Configure AWS credentials
20+
uses: aws-actions/configure-aws-credentials@v5
21+
with:
22+
aws-region: ${{ vars.RP_AWS_CRED_REGION }}
23+
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
24+
25+
- uses: actions/checkout@v5
26+
27+
- name: Install java
28+
run: sudo apt-get update && sudo apt-get install -y maven default-jdk
29+
30+
- name: Build binaries
31+
run: mvn clean compile package -DskipTests
32+
33+
- name: Upload to S3 bucket
34+
run: |
35+
aws s3 cp package-minimal/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz s3://perf-team-public/tmp/omb_minimal_${{ github.sha }}.tar.gz

0 commit comments

Comments
 (0)