Skip to content

Commit

Permalink
Implement upload steps for release notes and payloads in CI workflow,…
Browse files Browse the repository at this point in the history
… including AWS credentials configuration and S3 upload
  • Loading branch information
loki077 committed Dec 10, 2024
1 parent fdfb3dc commit 88da483
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,30 +555,30 @@ jobs:
# echo "Uploading Artifacts to: $PATH_TO_S3"
# aws s3 cp $GITHUB_WORKSPACE/Aircrafts/ $PATH_TO_S3 --recursive

# upload_other_files:
# runs-on: ubuntu-22.04
# needs: setup-s3-path
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
upload_other_files:
runs-on: ubuntu-22.04
needs: setup-s3-path
steps:
- name: Checkout code
uses: actions/checkout@v3

# - name: Prepare Upload Directory
# run: mkdir -p temp
- name: Prepare Upload Directory
run: mkdir -p temp

# - name: Upload Release Notes and Payloads
# run: |
# cp -v ArduPlane/ReleaseNotes.txt temp/ || echo "No ReleaseNotes found"
# cp -vr libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/payloads temp/ || echo "No Payloads found"
- name: Upload Release Notes and Payloads
run: |
cp -v ArduPlane/ReleaseNotes.txt temp/ || echo "No ReleaseNotes found"
cp -vr libraries/AP_HAL_ChibiOS/hwdef/CarbonixCommon/payloads temp/ || echo "No Payloads found"
# - 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: 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 Release Notes and Payloads to: $PATH_TO_S3"
# aws s3 cp temp/ $PATH_TO_S3 --recursive
- name: Upload to S3
run: |
PATH_TO_S3=${{ needs.setup-s3-path.outputs.s3_path }}
echo "Uploading Release Notes and Payloads to: $PATH_TO_S3"
aws s3 cp temp/ $PATH_TO_S3 --recursive

0 comments on commit 88da483

Please sign in to comment.