Skip to content

Commit 935e446

Browse files
author
Aliaksandr Adziareika
committed
<TBBAS-2530> Add artefacts downloading from S3
1 parent 5ac9ca7 commit 935e446

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
- jira/*
6+
7+
env:
8+
s3bucket: bb-blueberry-sdk-releases
9+
s3sdk_path: /releases/main/SDK
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Configuring
17+
uses: aws-actions/configure-aws-credentials@v4
18+
with:
19+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
20+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
21+
aws-region: ${{ secrets.AWS_REGION }}
22+
23+
- name: Enumerate artifacts
24+
run: |
25+
echo "Available artifacts:"
26+
aws s3 ls "s3://${{ env.s3bucket }}${{env.s3sdk_path}}" --human-readable
27+
28+
- name: Download artifact
29+
run: |
30+
echo "Downloading to $(pwd)"
31+
aws s3 cp "s3://${{ env.s3bucket }}${{env.s3sdk_path}}/opendaq-3.21.0-ubuntu22.04-x86_64_ffc93d2.deb" .
32+
33+
- name: Uploadading artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: opendaq-3.21.0-ubuntu22.04-x86_64_ffc93d2.deb
37+
path: ./opendaq-3.21.0-ubuntu22.04-x86_64_ffc93d2.deb

0 commit comments

Comments
 (0)