diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca5541df0e4ae..d735f3aa27df5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -184,3 +184,10 @@ jobs: src="artifacts/dist/${{ steps.package.outputs.name }}" dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/" aws s3 cp "$src" "$dest" + + - name: Upload checksum to S3 + if: ${{ inputs.checksum }} + run: | + src="artifacts/dist/${{ steps.package.outputs.name }}.sha512" + dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/" + aws s3 cp "$src" "$dest" diff --git a/scripts/assemble.sh b/scripts/assemble.sh index 1c9f7e1bcabf2..f36fadc1ab01e 100755 --- a/scripts/assemble.sh +++ b/scripts/assemble.sh @@ -393,6 +393,9 @@ function main() { assemble_deb ;; esac + + # Create checksum + sha512sum "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME" > "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME".sha512 } main "${@}"