Skip to content

Commit f0923f7

Browse files
ci: test-and-deploy: Add S3 upload
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent fb4e00b commit f0923f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,19 @@ jobs:
343343
echo "ASSET_NAME_SUFFIX=-pi4" >> $GITHUB_ENV
344344
fi
345345
346+
- name: Configure AWS credentials
347+
uses: aws-actions/configure-aws-credentials@v4
348+
if: startsWith(github.ref, 'refs/tags/')
349+
with:
350+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
351+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
352+
aws-region: us-east-1
353+
354+
- name: Upload to S3
355+
if: startsWith(github.ref, 'refs/tags/')
356+
run: |
357+
aws s3 sync BlueOS-raspberry-${{ env.SANITIZED_PLATFORM }}-${{ matrix.os }}.zip s3://blueos-downloads/ --delete
358+
346359
- name: Upload raspberry image for release
347360
uses: svenstaro/upload-release-action@v2
348361
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)