> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# timo-reymann/deterministic-zip

Install deterministic-zip


## Commands

### install

Install deterministic-zip


### zip

Run deterministic-zip


| Parameter | Type | Default | Description |
|---|---|---|---|
| `args` | string |  | Arguments to add |
| `attach-workspace` | boolean | false | Boolean for whether or not to attach to an existing workspace. Default is false.
 |
| `source` | string |  | Source to zip |
| `target` | string | archive.zip | Target file to create, including extension |
| `workspace-root` | string | . | Workspace root path that is either an absolute path or a path relative to the working directory. Defaults to '.' (the working directory)
 |

## Jobs

### zip

Zip files


| Parameter | Type | Default | Description |
|---|---|---|---|
| `args` | string |  | Arguments to add |
| `attach-workspace` | boolean | false | Boolean for whether or not to attach to an existing workspace. Default is false.
 |
| `source` | string |  | Source to zip |
| `target` | string | archive.zip | Target file to create, including extension |
| `workspace-root` | string | . | Workspace root path that is either an absolute path or a path relative to the working directory. Defaults to '.' (the working directory)
 |

## Executors

### default

Default executor


| Parameter | Type | Default | Description |
|---|---|---|---|
| `tag` | string | 2021.04 | Pick a specific circleci/node image variant: https://hub.docker.com/r/cimg/base/tags
 |

## Examples

### command-install

Use the commands to integrate into your existing build easily


```yaml
version: '2.1'
orbs:
  deterministic-zip: timo-reymann/deterministic-zip@<version>
jobs:
  github_release:
    executor: ubuntu
    steps:
      - checkout
      - deterministic-zip/install
      - run:
          command: deterministic-zip --version
          name: Print version
workflows: null
```

### command-zip

Use the commands to integrate into your existing build and zip files together


```yaml
version: '2.1'
orbs:
  deterministic-zip: timo-reymann/deterministic-zip@<version>
jobs:
  github_release:
    executor: ubuntu
    steps:
      - checkout
      - deterministic-zip/install
      - run:
          command: |
            mkdir -p src/
            touch src/test.txt
            touch src/te.tx
      - deterministic-zip/zip:
          source: src/*
          target: build.zip
workflows: null
```