Skip to content

Commit

Permalink
Merge pull request #2156 from input-output-hk/jpraynaud/chmod-pre-bui…
Browse files Browse the repository at this point in the history
…lt-binaries

Feat: add execute rights on pre-built binaries in CI
  • Loading branch information
jpraynaud authored Dec 4, 2024
2 parents 21d56f7 + 0cf9bd9 commit 490e2c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/scripts/package-distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ def build_archive(input_dir, destination_dir, archive_basename):
destination_dir, f"{archive_basename}.tar.gz")
with tarfile.open(archive_name, "x:gz") as archive:
for filename in input_files:
archive.add(os.path.join(input_dir, filename),
arcname=filename)
filepath = os.path.join(input_dir, filename)
os.chmod(filepath, 0o755)
archive.add(filepath, arcname=filename)

print(f"successfully packed mithril distribution into: {archive_name}")
return archive_name
Expand Down

0 comments on commit 490e2c9

Please sign in to comment.