diff --git a/.github/workflows/carbonix_build.yml b/.github/workflows/carbonix_build.yml index d0ea8d87cf..6cd572fe9e 100644 --- a/.github/workflows/carbonix_build.yml +++ b/.github/workflows/carbonix_build.yml @@ -310,6 +310,28 @@ jobs: python Tools/Carbonix_scripts/aircraft_config.py ${{ matrix.xml_file }} ${{ env.commit_id }} ls -la periph-output/ ls -la final-output/ + + - name: Install AWS CLI + run: | + apt-get update -y + DEBIAN_FRONTEND=noninteractive apt-get install -y curl unzip + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -q awscliv2.zip + ./aws/install --update + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Upload to S3 + run: | + PATH_TO_S3=${{ needs.setup-s3-path.outputs.s3_path }} + echo "Uploading Artifacts to: $PATH_TO_S3" + aws s3 cp final-output/ $PATH_TO_S3 --recursive + # build-sitl: