ci: give exec permission to provider binaries (#2779)

This commit is contained in:
Adrian Stobbe 2023-12-28 10:19:47 +01:00 committed by GitHub
parent 903411edae
commit 539e6eac48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,6 +462,7 @@ jobs:
if [[ "${ext}" = "exe" ]]; then
cp "${file}" "${folder_name}/terraform-provider-constellation_v${version}.exe"
else
chmod 755 "${file}" # the upload artifact does not preserve file permissions (https://github.com/actions/upload-artifact/tree/main/?tab=readme-ov-file#permission-loss)
cp "${file}" "${folder_name}/terraform-provider-constellation_v${version}"
fi
(cd "${folder_name}" && zip "../${folder_name}.zip" ./*) # do not zip the folder itself