Skip to content

Commit

Permalink
Update GitHub Actions workflow to use 7zip for archiving and uploadin…
Browse files Browse the repository at this point in the history
…g artifacts
  • Loading branch information
loki077 committed Dec 30, 2024
1 parent c17ed52 commit 0450356
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,17 +518,20 @@ jobs:
- name: List downloaded files
run: ls -R aircraft_zip/

- name: Install p7zip
run: sudo apt-get install -y p7zip-full

- name: Zip the folder
- name: 7zip the folder
run: |
cd aircraft_zip
zip -r ../${{ env.folder_name }}.zip .
7z a ../${{ env.folder_name }}.7z .
- name: Upload zipped folder to artifacts
- name: Upload 7z folder to artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.folder_name }}
path: ${{ env.folder_name }}.zip
path: ${{ env.folder_name }}.7z
retention-days: 15

- name: Configure AWS credentials
Expand All @@ -538,10 +541,10 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Upload zipped folder to S3
- name: Upload 7z folder to S3
run: |
PATH_TO_S3=${{ needs.setup-s3-path.outputs.s3_path }}
# Remove trailing slash if it exists
PATH_TO_S3=${PATH_TO_S3%/}
echo "Uploading to: $PATH_TO_S3"
aws s3 cp ${{ env.folder_name }}.zip $PATH_TO_S3/${{ env.folder_name }}.zip
aws s3 cp ${{ env.folder_name }}.7z $PATH_TO_S3/${{ env.folder_name }}.7z

0 comments on commit 0450356

Please sign in to comment.