create_archive
Create zip, tar, tar.gz, tar.bz2, or tar.xz archives from files and directories, with glob excludes and optional deterministic, byte-identical output.
Instructions
Create an archive from files and directories.
format: zip (default), tar, tar.gz, tar.bz2 or tar.xz. Each source is stored under its own base name (directories recursively). excludes are globs matched against the stored path and against every path component (e.g. ['*.pyc', 'pycache', '.git']). deterministic=true fixes timestamps, owners, permissions and ordering, so the same inputs give byte-identical output (the sha256 is returned). Symlinks in the sources are refused; the output file is never overwritten unless overwrite=true. Zips cannot be encrypted (standard-library limit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | zip | |
| output | Yes | ||
| sources | Yes | ||
| excludes | No | ||
| overwrite | No | ||
| deterministic | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |