Skip to content

Commit

Permalink
Add hash calculation for gpl-sources artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
dimonzozo committed Nov 5, 2024
1 parent 8ebd05e commit 7187159
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bin/upload-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ release_id=$(echo "$create_release_response" | jq '.id')

cd "$artifacts_dir"

sha256sum -b "$IMG_ARTIFACT_NAME" "$UPDATE_ARTIFACT_NAME" "$VMDK_ARTIFACT_NAME" "$RAUC_UPDATE_ARTIFACT_NAME" > "$sha256sums_name"
sha256sum -b "$IMG_ARTIFACT_NAME" "$UPDATE_ARTIFACT_NAME" "$VMDK_ARTIFACT_NAME" "$RAUC_UPDATE_ARTIFACT_NAME" "$GPL_SOURCES_ARTIFACT_NAME" > "$sha256sums_name"

upload_asset "$release_id" "$IMG_ARTIFACT_NAME" "$IMG_ARTIFACT_NAME"
upload_asset "$release_id" "$UPDATE_ARTIFACT_NAME" "$UPDATE_ARTIFACT_NAME"
upload_asset "$release_id" "$VMDK_ARTIFACT_NAME" "$VMDK_ARTIFACT_NAME"
upload_asset "$release_id" "$RAUC_UPDATE_ARTIFACT_NAME" "$RAUC_UPDATE_ARTIFACT_NAME"
upload_asset "$release_id" "$GPL_SOURCES_ARTIFACT_NAME" "$GPL_SOURCES_ARTIFACT_NAME"
upload_asset "$release_id" "$sha256sums_name" "$sha256sums_name"

if [ -e "$VEX_ARTIFACT_NAME" ]; then
Expand All @@ -56,7 +57,3 @@ fi
if [ -e "$INITRAMFS_SPDX_ARTIFACT_NAME" ]; then
upload_asset "$release_id" "$INITRAMFS_SPDX_ARTIFACT_NAME" "$INITRAMFS_SPDX_ARTIFACT_NAME"
fi

if [ -e "$GPL_SOURCES_ARTIFACT_NAME" ]; then
upload_asset "$release_id" "$GPL_SOURCES_ARTIFACT_NAME" "$GPL_SOURCES_ARTIFACT_NAME"
fi

0 comments on commit 7187159

Please sign in to comment.