|
|
@@ -143,27 +143,27 @@ jobs:
|
|
|
run: |
|
|
|
# Loop through all files in the downloaded-artifacts directory
|
|
|
for file in ./downloaded-artifacts/**/*; do
|
|
|
- # Check the file extension to set the correct content type
|
|
|
- if [[ "$file" == *.zip ]]; then
|
|
|
- content_type="application/zip"
|
|
|
- elif [[ "$file" == *.img ]]; then
|
|
|
- content_type="application/octet-stream"
|
|
|
- else
|
|
|
- echo "Skipping unknown file type: $file"
|
|
|
- continue
|
|
|
- fi
|
|
|
-
|
|
|
- # Upload the file to the GitHub release
|
|
|
- echo "Uploading $file with content type $content_type..."
|
|
|
- gh release upload ${{ env.NEW_TAG }} "$file" --content-type "$content_type" --name "$(basename "$file")"
|
|
|
+ # Check the file extension to set the correct content type
|
|
|
+ if [[ "$file" == *.zip ]]; then
|
|
|
+ content_type="application/zip"
|
|
|
+ elif [[ "$file" == *.img ]]; then
|
|
|
+ content_type="application/octet-stream"
|
|
|
+ else
|
|
|
+ echo "Skipping unknown file type: $file"
|
|
|
+ continue
|
|
|
+ fi
|
|
|
+
|
|
|
+ # Upload the file to the GitHub release
|
|
|
+ echo "Uploading $file with content type $content_type..."
|
|
|
+ gh release upload ${{ env.NEW_TAG }} "$file" --content-type "$content_type" --name "$(basename "$file")"
|
|
|
done
|
|
|
env:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
NEW_TAG: ${{ env.NEW_TAG }}
|
|
|
|
|
|
-
|
|
|
# Display Files Uploaded
|
|
|
- name: Display Files Uploaded
|
|
|
run: |
|
|
|
echo "GitHub release created with the following files:"
|
|
|
ls ./downloaded-artifacts/**/*
|
|
|
+/*
|