Skip to content

Commit e3d4f29

Browse files
Add GA
WIP
1 parent 0c0d504 commit e3d4f29

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

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

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